Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference — November 2003 163
change the repetition definition for a tone — dx_chgrepcnt( )
!
!!
! Cautions
This function changes only the definition of a tone. The new definition does not apply to a channel
until dx_deltones( ) is called on that channel followed by dx_initcallp( ).
!
!!
! Errors
For a list of error codes, see the Error Codes chapter.
!
!!
! Example
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
DX_CAP cap_s;
int ddd, car;
char *chnam, *dialstrg;
chnam = "dxxxB1C1";
dialstrg = "L1234";
/*
* Open channel
*/
if ((ddd = dx_open( chnam, NULL )) == -1 ) {
/* handle error */
}
/*
* Delete any previous tones
*/
if ( dx_deltones(ddd) < 0 ) {
/* handle error */
}
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_DISCONNECT – Disconnect tone (post-connect)
TID_FAX1 – Fax or modem tone
TID_FAX2 – Alternate fax or modem tone
TID_RNGBK1 – Ringback (detected as single tone)
TID_RINGBK2 – Ringback (detected as dual tone)
repcnt the number of times that the signal must repeat