dtmStopTrunkMonitor

Stops monitoring a specified trunk.

Prototype

DWORD dtmStopTrunkMonitor ( DTMHD dtmhd)

Argument

Description

dtmhd

Handle to the trunk monitor object.


Return values

Return value

Description

SUCCESS

 

CTAERR_INVALID_HANDLE

dtmhd is not a valid monitor handle.

CTAERR_SVR_COMM

Communication error in server environment.


Events

Event

Description

DTMEVN_MONITOR_DONE

Monitoring ended. The size field contains a board number in the high word and a trunk number in the low word. The objHd field of this event contains the dtmhd. The value field of the event contains either an error code or the following reason:

CTA_REASON_STOPPED

Monitoring was stopped by dtmStopTrunkMonitor.


Details

dtmStopTrunkMonitor terminates monitoring of the board and trunk implied by the specified dtmhd. After DTMEVN_MONITOR_DONE is received, the dtmhd is no longer valid.

See also

dtmStartTrunkMonitor