Previous PageTable Of Contents../index.htmlIndexNext Page

dx_chgdur( )

Description | Example | Cautions | See Also

Name:

int dx_chgdur(tonetype, ontime, ondev, offtime, offdev)

Inputs:

int tonetype

  tone to modify

 

int ontime

  on duration

 

int ondev

  ontime deviation

 

int offtime

  off duration

 

int offdev

  offtime deviation

Returns:

0

  success

 

-1

  tone does not have cadence values

 

-2

  unknown tone type

Includes:

srllib.h
dxxxlib.h

Category:

PerfectCall Call Analysis

Top Of PageDescription

The dx_chgdur( ) function changes the duration for a PerfectCall tone. The Voice Driver comes with default definitions for each of the PerfectCall Call Analysis tones, which are identified by tonetype.

Changing a tone definition has no immediate effect on the behavior of an application. The dx_initcallp( ) function takes the tone definitions and uses them to initialize a channel. Once a channel is initialized, subsequent changes to the tone definitions have no effect on that channel. For these changes to take effect, dx_deltones must be called and then followed by calling dx_initcallp.

Parameter

Description

tonetype

specifies the identifier of the tone whose definition is to be modified. It may be one of the following:

 
  • TID_BUSY1: Busy signal
 
  • TID_BUSY2: Alternate busy signal
 
  • TID_DIAL_INTL: International dial tone
 
  • TID_DIAL_LCL: Local dial tone
 
  • TID_DIAL_XTRA: Special (extra) dial tone
 
  • TID_FAX1: Fax or modem tone
 
  • TID_FAX2: Alternate fax or modem tone
 
  • TID_RNGBK1: Ringback
 
  • TID_DISCONNECT: Disconnect tone (post-connect)

ontime

is the length of time that the tone is on
(10 ms units).

ondev

is the maximum permissible deviation from ontime (10 ms units).

offtime

is the length of time that the tone is off
(10 ms units).

offdev

is the maximum permissible deviation from offtime (10 ms units).

Top Of PageExample

Top Of PageCautions

This function changes only the definition of a signal. The new definition does not apply to a channel until dx_deltones is called and then dx_initcallp( ) is called on that channel.

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