60 Voice API Programming Guide — June 2005
Call Progress Analysis
Consider the following guidelines when creating a single tone proxy:
•It is recommended that you add at least 60 Hz to the top of the dual tone range and subtract at
least 60 Hz from the bottom of the dual tone range. For example:
Freq1 (Hz): 400 - 500
Freq 2 (Hz): 600 - 700
Twin tone freq (Hz): 340 - 760
•Before using the TONE_DATA structure in a function call, set any unused fields in the
structure to zero to prevent possible corruption of data in the allocated memory space. This
guideline is applicable to unused fields in any data structure.
7.8.5 Steps to Modify a Tone Definition on DM3 Boards
To modify a default tone definition on DM3 boards using the voice API library, follow these steps:
Note: This procedure assumes that you have already opened the physical board device handle in your
application. To get the physical board name in the form brdBn, use the
SRLGetPhysicalBoardName( ) function. This function and other device mapper functions return
information about the structure of the system. For more information, see the Standard Runtime
Library API Library Reference.
1. Get the tone information for the call progress tone to be modified using dx_querytone( ).
After the function completes successfully, the relevant tone information is contained in the
TONE_DATA structure.
2. Delete the current call progress tone using dx_deletetone( ) before creating a new tone
definition.
3. Create a new tone definition for the call progress tone using dx_createtone( ). Specify the new
tone information in the TONE_DATA structure.
4. Repeat steps 1-3 in this order for each tone to be modified.
7.9 Call Progress Analysis ErrorsIf ATDX_CPTERM( ) returns CR_ERROR, you can use ATDX_CPERROR( ) to determine the
call progress analysis error that occurred. For details on these functions, see the Voice API Library
Reference.
7.10 Using Call Progress Analysis on Springware BoardsThe following topics provide information on how to use call progress analysis when making an
outbound call:
•Overview of Steps to Initiate Call Progress Analysis
•Setting Up Call Progress Analysis Features in DX_CAP
•Enabling Call Progress Analysis
•Executing a Dial Function