Previous PageTable Of Contents../index.htmlIndexNext Page

dx_chgfreq( )

Description | Example | Cautions | See Also

Name:

int dx_chgfreq(tonetype, freq1, freq1dev, freq2, freq2dev)

Inputs:

int tonetype

  tone to modify

 

int freq1

  frequency of first tone

 

int freq1dev

  frequency deviation for first tone

 

int freq2

  frequency of second tone

 

int freq2dev

  frequency deviation of second tone

Returns:

0

  success

 

-1

  failure due to bad parameter(s) for tone type

 

-2

  failure due to unknown tone type

Includes:

srllib.h
dxxxlib.h

Category:

PerfectCall Call Analysis

Top Of PageDescription

The dx_chgfreq( ) function changes the frequency for a PerfectCall tone, identified by tonetype, by modifying its frequency component.

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

PerfectCall Call Analysis supports both single-frequency and dual-frequency tones. For dual-frequency tones, the frequency and tolerance of each component may be specified independently. For single-frequency tones, specifications for the second frequency are set to zero.

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)

freq1

is the frequency of the first tone (in Hz).

freq1dev

is the maximum permissible deviation from freq1 (in Hz).

freq2

is the frequency of the second tone, if any (in Hz). If there is only one frequency, freq2 is set to zero.

freq2dev

is the maximum permissible deviation from freq2 (in Hz).

Top Of PageExample

Top Of PageCautions

None.

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