Previous PageTable Of Contents../index.htmlIndexNext Page

dx_deltones( )

Description | Cautions | Example | Errors | See Also

Name:

int dx_deltones(chdev)

Inputs:

int chdev

  valid Dialogic channel device handle

Returns:

0

  Success

 

-1

  Error return code

Includes:

srllib.h
dxxxlib.h

Category:

Global Tone Detection

Top Of PageDescription

The dx_deltones( ) function deletes all user-defined tones previously added to a channel with dx_addtone( ). If no user-defined tones were previously enabled for this channel, this function has no effect.

NOTE:
Calling this function deletes ALL user-defined tones defined by dx_blddt( ), dx_bldst( ), dx_bldstcad( ), or dx_blddtcad( ).

Parameter

Description

chdev

specifies the valid Dialogic channel device handle obtained when the channel was opened using dx_open( ).

Top Of PageCautions

When using this function in a multi-threaded application, use critical sections or a semaphore around the function call to ensure a thread-safe application. Failure to do so will result in "Bad Tone Template ID" errors.

Top Of PageExample

Top Of PageErrors

If the function returns -1 to indicate failure, call ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to return one of the following errors:

EDX_BADPARM

  • Invalid parameter

EDX_BADPROD

  • Function not supported on this board

EDX_SYSTEM

Top Of PageSee Also

Adding and Enabling User-defined Tones:

Building Tones:


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