4.1. Digital Network Interface Function Categories
This chapter describes the Digital Network Interface library functions that control the Digital Network Interface hardware. A complete reference describing these functions in detail is located in Chapter 5. Function Reference.
The Digital Network Interface library functions provide the necessary building blocks to create voice applications using T-1 or E-1 lines. These functions can be divided into the following categories:
Each category and its functions are briefly described in the following sections.
4.1.1. Alarm FunctionsThe Alarm functions allow your application to control the way T-1 or E-1 alarms are handled. The dt_setalrm( ) function sets the alarm-handling mode. The dt_xmitalrm( ) function starts and stops the transmission of alarms.
For a detailed discussion of T-1 and E-1 alarm handling, refer to Chapter 3. Digital Telephony Overview.
4.1.2. Diagnostic FunctionsThe Diagnostic functions check the Network firmware and hardware. The dt_rundiag( ) function runs diagnostics on the Network firmware and the other two functions test the hardware. The dt_tstcom( ) function tests communication between the PC and the Digital Network Interface device. The dt_tstdat( ) function tests the reliability of data transfer between the PC and the Digital Network Interface device.
4.1.3. Extended Attribute FunctionsStandard Attribute functions, which are contained in the Standard Runtime Library (SRL, see Appendix A - Standard Runtime Library), provide generic information about a device, such as its name or the status of the last function call of the device. Extended Attribute functions return device specific information. The Digital Network Interface library Extended Attribute functions return information about Digital Network Interface logical board and time slot devices.
Extended Attribute function error handling is similar to that of other Digital Network Interface library functions. Most Extended Attribute functions return AT_FAILURE on error. One Extended Attribute function, ATDT_BDSGBIT( ), returns the value AT_FAILUREP on error. Refer to Section 4.2. Error Handling for information about retrieving errors.
4.1.4. Parameter Request FunctionsParameter Request functions are used to check the status of Network parameter and event mask settings.
4.1.5. Parameter Setting FunctionsThe Parameter Setting functions set Network device parameters and masks used for event management.
4.1.6. Resource Management FunctionsResource Management functions open and close devices. Before you can perform an operation on a device, the device must be opened. The dt_open( ) function returns a unique device handle. All subsequent operations on the device must use this handle.
4.1.7. Routing FunctionsRefer to the SCbus Routing Function Reference for more information about these functions.
Routing functions enable the application to make or break a connection between voice, telephone network interface and other resource channels connected via SCbus time slots.
4.1.8. Time Slot Audio FunctionsA Time Slot Audio function affects only the transmitted audio portion of a time slot. It replaces the normal voice data on the audio portion of a time slot with other data. The dt_setidle( ) function transmits an idle pattern (digital equivalent of silence) on the selected Digital Network Interface time slot. The specific idle pattern transmitted can be specified via the download configuration file or by using the dt_setparm( ) function.
4.1.9. Time Slot Signaling FunctionsTime Slot Signaling functions affect the transmitted signaling portion of a time slot. The dt_setsigmod( ) function selects the origin of the signaling information. The signaling information can either be inserted by the Digital Network Interface hardware or derived (by way of the SCbus) from an SCbus compatible resource device (such as a D/240SC-T1) or another network device. The dt_settssig( ) function sets the state of the signaling bits when the signaling information is inserted by the Digital Network Interface board (signaling insertion mode). The dt_xmitwink( ) function transmits wink signaling to the network on any of the available signaling bits (for T-1, bit A or B; for E-1, bit A, B, C, or D).
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation