In the Function Reference chapter, each function is described in detail, and the function header includes the category to which the function belongs.
| |
|
The Device Management functions open and close devices (boards and channels). For SCbus configurations using a D/240SC-T1 or D/300SC-E1 board, each board comprises a digital interface device with independent channels/time slots (dtiBxTx) and a voice device with independent channels (dxxxBxCx); where B is followed by the unique board number, C is followed by the number of the voice device channel (1 to 4) and T is followed by the number of the digital interface device time slot (digital channel)(1 to 24 for T-1; 1 to 30 for E-1).
Before you can use any of the other library functions on a device, that device must be opened. When the device is opened using dx_open( ) the function returns a unique Dialogic device handle. The handle is the only way the device can be identified once it has been opened. The dx_close( ) function closes a device via its handle.
Device Management functions do not cause a device to be busy. In addition, the Device Management functions will work on a device whether the device is busy or idle.
2.3.2. Configuration Functions
| |
| |
| |
| |
| |
|
Configuration functions allow you to alter, examine, and control the physical configuration of an open device. The configuration functions operate on a device only if the device is idle. All configuration functions cause a device to be busy and return the device to an idle state when the configuration is complete. See Section 3.1.3. Busy and Idle States for information about busy and idle states.
2.3.3. I/O Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The purpose of an I/O function is to transfer data to and from an open idle channel. All I/O functions cause a channel to be busy while data transfer is taking place and return the channel to an idle state when data transfer is complete. The dx_stopch( ) function stops any other I/O function, except dx_dial( ).
I/O functions can be run synchronously or asynchronously. When running synchronously, they return after completing successfully or after an error. When running asynchronously they will return immediately to indicate successful initiation (or an error), and continue processing until a termination condition is satisfied. The Voice Software Reference: Standard Runtime Library contains a full discussion of asynchronous and synchronous operation.
A set of termination conditions can be specified for I/O functions (except dx_stopch( ) and dx_wink( )). These conditions dictate what events will cause an I/O function to terminate. The termination conditions are specified just before the I/O function call is made. Obtain termination reasons for I/O functions by calling the Extended Attribute function ATDX_TERMMSK( ). See Section 3.1.4. I/O Terminations for information on I/O terminations.
2.3.4. Play and Record FunctionsPlay and record functions included in the Voice Library are listed below:
|
| |
2.3.5. Convenience Functions
| |
| |
| |
| |
| |
|
These functions simplify synchronous play and record.
dx_playf( ) performs a playback from a single file by specifying the filename. The same operation can be done by using dx_play( ) and supplying a DX_IOTT structure with only one entry for that file. Using dx_playf( ) is more convenient for a single file playback, because you do not have to set up a DX_IOTT structure for the one file, and the application does not need to open the file. dx_playvox( ), dx_playwav( ), dx_recvox( ), dx_recwav( ), and dx_recf( ) provide the same single-file convenience for the dx_playiottdata( ), dx_reciottdata( ), and dx_rec( ) function.
2.3.6. Call Status Transition Event Functions
| |
|
Call Status Transition (CST) Event functions set and monitor Call Status Transition events that can occur on a device. Call Status Transition events indicate changes in the status of the call. For example, if rings were detected, if the line went onhook or offhook, or if a tone was detected. The full list of Call Status Transition events is provided in the Call Status Transition structure (DX_CST) in the chapter on Data Structures.
dx_setevtmsk( ) enables detection of CST event(s).
dx_getevt( ) retrieves events in a synchronous environment. To retrieve CST events in an asynchronous environment, use the Standard Run-time Library's Event Management functions.
2.3.7. SCbus Routing FunctionsSee the SCbus Routing Software Reference for function descriptions and the nomenclature used to identify devices, channels and time slots in an SCbus configuration. The SCbus routing functions can only be used in SCbus configurations.
nr_scroute( ) |
|
nr_scunroute( ) |
|
2.3.8. Global Tone Detection Functions
| |
| |
| |
| |
| |
| |
| |
| |
|
Use the Global Tone Detection (GTD) functions to define and enable detection of single and dual frequency tones that fall outside those automatically provided with the Voice Driver. This includes tones outside the standard DTMF range of 0-9, a-d, * and #.
The GTD dx_blddt( ), dx_blddtcad( ), dx_bldst( ), and dx_bldstcad( ) functions define tones which can then be added to the channel using dx_addtone( ). This enables detection of the tone on that channel.
See the Voice Software Reference: Voice Features Guide for a full description of Global Tone Detection.
2.3.9. Global Tone Generation Functions
| |
| |
|
Use Global Tone Generation functions to define and play single and dual tones other than those automatically provided with the Voice driver.
dx_bldtngen( ) defines a tone template structure, TN_GEN. dx_playtone( ) can then be used to generate the tone.
2.3.10. R2MF Convenience Functions
| |
|
These are convenience functions which enable detection of R2MF forward signals on a channel, and play R2MF backward signals in response. For more information about Voice Support for R2MF, see the Voice Software Reference: Voice Features Guide.
2.3.11. Speed and Volume Functions
| |
| |
| |
| |
| |
|
Use these functions to adjust the speed and volume of the play. A 21-entry Speed Modification Table and Volume Modification Table is associated with each channel. This table can be used for increasing or decreasing the speed or volume. This table has default values which can be changed using the dx_setsvmt( ) function.
dx_adjsv( ) and dx_setsvcond( ) both use the Modification Table to adjust speed or volume; dx_adjsv( ) adjusts speed or volume immediately, and dx_setsvcond( ) sets conditions (such as a digit) for speed or volume adjustment. dx_clrsvcond( ) to clear the speed or volume conditions.
dx_getcursv( ) retrieves the current speed or volume settings. dx_getsvmt( ) retrieves the settings of the current Speed or Volume Adjustment Table.
See the Voice Software Reference: Voice Features Guide for more information about voice software support for speed and volume.
2.3.12. Speed and Volume Convenience Functions
| |
|
dx_addspdig( ) and dx_addvoldig( ) are convenience functions that specify a digit and an adjustment to occur on that digit, without having to set any data structures. These functions use the default settings of the Speed/Volume Modification Tables.
2.3.13. PerfectCall Call Analysis Functions
2.3.14. Caller ID Functions
| |
| |
|
2.3.15. Structure Clearance Functions
| |
|
These functions do not affect a device. The dx_clrcap( ) and dx_clrtpt( ) functions provide a convenient method for clearing the DX_CAP and DV_TPT Voice Library data structures.
2.3.16. Extended Attribute Functions
Call Analysis | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
PerfectCall Call Analysis uses: | |
|
| |
|
| |
|
| |
|
| |
|
| |
|
The Call Status Transition event detection uses: | |
|
| |
|
Global Tone Detection uses: | |
|
| |
Voice Library Extended Attribute functions return information specific to the Voice device indicated in the function call.
2.3.17. File Manipulation FunctionsThese file manipulation functions map to C run-time functions, and can only be used if the file is opened with the dx_fileopen( ) function. The arguments for these Dialogic functions are identical to the equivalent Microsoft Visual C++ run-time functions.
| |
| |
| |
| |
| |
|
2.3.18. Echo Cancellation Resource FunctionsUse the following functions to configure a voice channel as an echo cancellation device. For more information on echo cancellation resource (ECR), see the Voice Software Reference: Voice Features Guide.
| |
| |
| |
|
2.3.19. Resource Sharing FunctionsThe resource sharing functions apply to DSP resource features that can be shared, such as DSP Fax resources.
|
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation