Table of Contents Index NMS Glossary Previous Page Next Page (Page 62 of 69 in this chapter) Version


adiStopSignalDetector

Description

Stops the out-of-band signaling bit detector.

Prototype

DWORD adiStopSignalDetector ( CTAHD ctahd )

ctahd CTA context handle returned by ctaCreateContext.

Return Values

Events

Details

This function disables detection of the transitions of incoming signaling bits. After this function is called, incoming out-of-band bit transitions will not be reported.

Note: This function is mutually exclusive from standard call control. CTA contexts running a standard protocol are usually excluded from use of this function.

See Also

adiStartSignalDetector

Example


int myStopSignalDetector( CTAHD ctahd )
{
 CTA_EVENT event;

    if( adiStopSignalDetector( ctahd ) != SUCCESS )
        return MYFAILURE;

    while( 1 )
    {
        myGetEvent( &event );           /* see ctaWaitEvent example */

        switch( event.id )
        {
            case ADIEVN_SIGNAL_DETECT_DONE:
                if( event.value == CTA_REASON_RELEASED )
                    return MYDISCONNECT;    /* call has been terminated */
                else if( CTA_IS_ERROR( event.value ) )
                    return MYFAILURE;       /* API error */
                else
                    return SUCCESS;         /* stopped normally */
                break;

            /* might include cases to handle disconnect, DTMFs, etc. */
        }
    }
}



Table of Contents Index NMS Glossary Previous Page Next Page (Page 62 of 69 in this chapter) Version


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