Previous PageTable Of Contents../index.htmlIndexNext Page

dx_unlisten( )

Description | Cautions | Example | Errors | See Also

Name:

int dx_unlisten(chdev)

Inputs:

int chdev

  voice channel handle

Returns:

0 on success

 

 

-1 on error

 

Includes:

dxxxlib.h

 

Category:

SCbus Routing

Mode:

Synchronous

Top Of PageDescription

The dx_unlisten( ) function disconnects voice receive channel from SCbus. This function disconnects the voice receive (listen) channel from the SCbus time slot it was listening to.

Calling the dx_listen( ) function to connect to a different SCbus time slot will automatically break an existing connection. Thus, when changing connections, you need not call the dx_unlisten( ) function.

NOTE:
SCbus convenience function nr_scunroute( ) includes dx_unlisten( ) functionality. See the SCbus Routing Guide for more information on cconvenience functions.

Parameter

Description

chdev:

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

Top Of PageCautions

This function will fail 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

Command 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_BADTYPE

Invalid channel type (voice, analog, etc.)

EDX_SH_CMDBLOCK

Blocking command is in progress

EDX_SH_LCLDSCNCT

Channel already disconnected from 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 failback failed

EDX_SYSTEM

Windows System Error

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

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