Previous Page Table Of Contents../index.html IndexNext Page


4. Function Overview

Top Of Page4.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:

NOTE:
Many Digital Network Interface library functions can operate in either synchronous mode or asynchronous mode. Synchronous functions do not return control to the calling process until the function call is completed. To operate a function in asynchronous mode, your application must include an event handler to trap and process the completion event.

Each category and its functions are briefly described in the following sections.

The 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.

The 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.

Standard 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.

Parameter Request functions are used to check the status of Network parameter and event mask settings.

The Parameter Setting functions set Network device parameters and masks used for event management.

Resource 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.

NOTES:
NOTES: 1. A device handle is NOT the same as a system file handle.
2. Opening or closing a Digital Network Interface device does not affect other processes using the device. (See Chapter 6. Application Guidelines, for more information on opening and using DTI devices.)
3. The value returned by dt_open( ) for a Digital Network Interface logical board is referred to as a logical board device handle in this guide.

Refer 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.

A 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.

Time 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).

NOTES:
1. The signaling bit and polarity used for wink signaling are only configurable through the download parameter file. See the Software Installation Guide (for Linux or Windows) for details.
2. If your configuration includes Voice boards, you can use the Voice library function dx_dial( ) instead.

Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001