Previous PageTable Of Contents../index.htmlIndexNext Page

cc_StopTone( )

Description | Termination Events | Cautions | Example | Errors | See Also

Name:

int cc_StopTone(devHdl, mode)

Inputs:

int devHdl

  channel device handle

 

int mode

  asynchronous/synchronous

Returns:

0 on success
<0 on failure

Includes:

cclib.h

Category:

Global Tone Generation

Mode:

asynchronous/synchronous

Technology:

BRI/SC

Top Of PageDescription

The cc_StopTone( ) function forces the termination of a tone that is currently playing on a channel. The function forces a channel that is in the playing state to become idle. Running the cc_StopTone( ) function asynchronously initiates the function without affecting processes on other channels. Running this function synchronously within a process does not block other processing, allowing other processes to continue to be serviced.

The cc_StopTone( ) function allows the application to stop the playing of user-defined tones only. This command cannot be used to stop the playing of the firmware-applied call progress tones. The firmware-applied call progress tones and user-defined tones operate independently, except that when the firmware is playing a call progress tone, the application may not play a user-defined tone on the same channel at the same time.

Parameter

Description

devHdl:

Specifies the channel device handle that was obtained when the channel was opened using cc_Open( ).

mode:

Specifies whether to run the function asynchronously (EV_ASYNC) or synchronously (EV_SYNC).

Top Of PageTermination Events

Use the SRL Event Management functions to handle the termination event.

Top Of PageCautions

Top Of PageExample

Top Of PageErrors

If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be used to interpret the reason code. Error codes are defined in the files ccerr.h, isdnerr.h, and isdncmd.h.

Error codes from the cc_StopTone( ) function include the following:

Error Code

Description

ERR_TONEINVALIDMSG

Invalid message type

ERR_TONEBUSY

Busy executing previous command

ERR_TONECP

System error with CP

ERR_TONEDSP

System error with DSP

ERR_TONECHANNELID

Invalid channel ID

ERR_TONESTOP

Tone has already stopped playing on this channel

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 December, 2001