Previous PageTable Of Contents../index.htmlIndexNext Page

dx_chgrepcnt( )

Description | Example | Cautions | See Also

Name:

int dx_chgrepcnt(tonetype, repcnt)

Inputs:

int tonetype

  tone to modify

 

int repcnt

  repetition count

Returns:

0

  success

 

-1

  tone does not have a repetition value

 

2

  unknown tone type

Includes:

srllib.h
dxxxlib.h

Category:

PerfectCall Call Analysis

Top Of PageDescription

The dx_chgrepcnt( ) function changes the repetitions for a PerfectCall tone, identified by tonetype, by modifying its repetition count component (the number of times that the signal must repeat before being recognized as valid).

The Voice Driver comes with default definitions for each of the PerfectCall Call Analysis tones; this function alters the repetition count component of one of the definitions.

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 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)

repcnt

is the number of times that the signal must repeat.

Top Of PageExample

Top Of PageCautions

This function changes only the definition of a tone. The new definition does not apply to a channel until 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