Table of Contents Index NMS Glossary Previous Page Next Page (Page 6 of 7 in this chapter) Version


dtmStartTrunkMonitor

Description

Starts monitoring a specified trunk.

Prototype

DWORD dtmStartTrunkMonitor ( CTAHD ctahd,
unsigned board,
unsigned trunk,
DTMHD *dtmhd,
DTM_START_PARMS
*parms)

ctahd Handle returned by ctaCreateContext.

board AG board number as specified in the configuration file.

trunk The specific trunk on the board. The first trunk is 0.

dtmhd Pointer to the returned monitor handle.

parms Pointer to a parameter structure. Set this to NULL to use default values. The DTM_START_PARMS structure is:


typedef struct
{
 DWORD size;
 DWORD maxevents;
 DWORD reportmask;

} DTM_START_PARMS;

Return Values

Events

Details

This function starts monitoring a particular digital trunk and returns a DTM handle, dtmhd. Monitoring is active until it is stopped with dtmStopTrunkMonitor, until the DTM service is closed, or until the context associated with ctahd is destroyed. The dtmhd is valid until the application receives the DONE event from the call to dtmStopTrunkMonitor.

dtmStartTrunkMonitor can be called multiple times on the same context for different trunks. Also, the same trunk can be simultaneously monitored by multiple contexts.

parms points to a DTM_START_PARMS parameter structure. If parms is NULL, the default parameter values are used. Use NMS parameter management functions to change default parameter values for a processing context.

The fields in the DTM_START_PARMS structure include:

An application that wants to know when a trunk fails and when it is restored should use the default value of 1 for reportmask. Set reportmask to 0x7F to get events when anything changes.

A DTMEVN_MONITOR_STARTED event, containing the current alarm status, will always be sent as soon as the monitoring is started.

dtmStartTrunkMonitor fails if the board type does not support monitoring.

See Also

dtmStopTrunkMonitor



Table of Contents Index NMS Glossary Previous Page Next Page (Page 6 of 7 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2001, Natural MicroSystems, Inc. All rights reserved.