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


8.2. Handling Errors, Events and Alarms

The Dialogic ISDN API library is an extension of the DTI library. Therefore, events, errors, and alarms are handled by the application in the same way as Dialogic DTI applications. Refer to the Digital Network Interface Software Reference and the Voice Software Reference - Standard Runtime Library for the appropriate operating system for more information.

Each Dialogic ISDN API library function returns a value < 0 on failure. Be sure to check any call to a Dialogic ISDN API library function for a return value that indicates an error. The following code samples demonstrate how to handle errors done in asynchronous and synchronous modes.

When an event occurs, the application may use sr_getevttype( ) to retrieve the event type. For example:

The application may also use the Dialogic function calls to retrieve additional event or error information. For example:

All ISDN trunk alarms are reported to and handled by the application in the same way as DTI trunk alarms. Additionally, when the trunk is lost, all active calls will be disconnected automatically and a CCEV_DISCONNECTED event will be reported for each line device.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

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