Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 12 in this chapter) Version


mgcSignalDone

Description

Informs the MGCP service that the application stopped generating a signal.

Prototype

DWORD mgcSignalDone (CTAHD ctahd,
char *epname,
char *signalname,
int response_code)

ctahd Context handle associated with the gateway application.

epname Pointer to an endpoint name. This string cannot include wild cards.

signalname Pointer to a signal name that identifies the event condition that is no longer being detected. The signalname is a combination of the package and signal IDs.

response_code Response code to return to the call agent that requested the signal. The response_code can be one of the following:

MGC_CODE_DONE


MGC_CODE_FAIL


MGC_CODE_STOPPED

Return Values

Events

Details

Applications invoke this function when they have stopped generating a signal specified with mgcDefinePackage. This function specifies that the application is no longer generating a signal that was requested by the call agent and communicated to the application through an MGC_SIGNAL_ON_REQUEST event.

The application calls mgcSignalDone to notify the MGCP service when it stops generating the signal for any reason. For example:

The response code specified by the application indicates:
Response Code

Description

MGC_CODE_DONE

The application completed generating a BR or TO signal.

MGC_CODE_STOPPED

The application stopped detecting the event condition at the explicit request of the call agent (that is, through an MGCP service MGC_EVENT_OFF_REQUEST event).

MGC_CODE_FAIL

The application stopped generating the signal for some other reason.

See Also

mgcDefinePackage, mgcSignalProcessed



Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 12 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2001, NMS Communications Corporation. All rights reserved.