Previous PageTable Of Contents../index.htmlIndexNext Page

dx_listenecrex( )

Cautions | Example | Errors | See Also

Parameter

Description

chdev

Specifies the voice channel device handle obtained when the channel was opened using dx_open( ).

sc_tsinfop

Specifies a pointer to the data structure SC_TSINFO.

NOTE:
For this function, NLP is enabled by default. If you do not want NLP enabled, use dx_listenecrex( ) with NLP disabled.

The SC_TSINFO structure is declared as follows:

The sc_numts field of the SC_TSINFO structure must be set to 1. The sc_tsarrayp field of the SC_TSINFO structure must be initialized with a pointer to a valid array. The first element of this array must contain a valid SCbus time-slot number (between 0 and 1023) which was obtained by issuing a call to xx_getxmitslot( ) (where xx_ is ag_, dt_, dx_, or ms_) or dx_getxmitslotecr( ), depending on the application of the function. Upon return from the dx_listenecr( ) function, the echo canceller of the specified voice channel is connected to the SCbus time slot specified, and it uses the signal carried on the SCbus time slot as the echo-reference signal for echo cancellation.

Top Of PageCautions

This function fails when:

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive error message. One of the following error codes may be returned:

Equate

Returned When

EDX_BADPARM

Parameter error

EDX_SH_BADCMD

Function is not supported in current bus configuration

EDX_SH_BADEXTTS

SCbus time slot is not supported at current clock rate

EDX_SH_BADINDX

Invalid Switch Handler index number

EDX_SH_BADLCLTS

Invalid channel number

EDX_SH_BADMODE

Function not supported in current bus configuration

EDX_SH_CMDBLOCK

Blocking function is in progress

EDX_SH_LCLTSCNCT

Channel is already connected to SCbus

EDX_SH_LIBBSY

Switch Handler library busy

EDX_SH_LIBNOTINIT

Switch Handler library uninitialized

EDX_SH_MISSING

Switch Handler is not present

EDX_SH_NOCLK

Switch Handler clock fallback failed

EDX_SYSTEM

Error from operating system; use dx_fileerrno( ) to obtain error value

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002