
05-1850-004

INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, or life sustaining applications.
Intel may make changes to specifications and product descriptions at any time, without notice.
This OA&M API for Linux Operating Systems Programming Guide as well as the software described in it is furnished under license and may only be used or copied in accordance with the terms of the license. The information in this manual is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Intel Corporation. Intel Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in association with this document.
Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without express written consent of Intel Corporation.
Copyright © 2002-2005 Intel Corporation. All Rights Reserved.
BunnyPeople, Celeron, Chips, Dialogic, EtherExpress, ETOX, FlashFile, i386, i486, i960, iCOMP, InstantIP, Intel, Intel Centrino, Intel Centrino logo, Intel logo, Intel386, Intel486, Intel740, IntelDX2, IntelDX4, IntelSX2, Intel Inside, Intel Inside logo, Intel NetBurst, Intel NetMerge, Intel NetStructure, Intel SingleDriver, Intel SpeedStep, Intel StrataFlash, Intel Xeon, Intel XScale, IPLink, Itanium, MCS, MMX, MMX logo, Optimizer logo, OverDrive, Paragon, PDCharm, Pentium, Pentium II Xeon, Pentium III Xeon, Performance at Your Command, skoool, Sound Mark, The Computer Inside., The Journey Inside, VTune, and Xircom are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.
Intel Converged Communications, Inc. 1515 Route 10 Parsippany, NJ 07054
For Technical Support, visit the Intel Telecom Support Resources website at: http://developer.intel.com/design/telecom/support
For Products and Services Information, visit the Intel Telecom Products website at: http://www.intel.com/design/network/products/telecom
For Sales Offices and other contact information, visit the Where to Buy Intel Telecom Products page at: http://www.intel.com/buy/wtb/wtb1028.htm


1 OA&M API Classes 10 2 Event Notification Framework 12
Contents

This revision history summarizes the changes made in each published version of this document.

Revision History

The following topics provide information about this publication:
This publication provides guidelines for building applications using the Operations, Administration and Maintenance (OA&M) API. The OA&M API is used to create system management applications (for example, a customized CT bus clocking daemon).
This publication is a companion guide to the OA&M API for Linux Operating Systems Library Reference that provides details on the classes, functions, error codes and events in the OA&M library.
This publication is written for the following audience:
Refer to this publication after you have installed the hardware and the system software that includes the OA&M API library.
This publication assumes that you are familiar with the Linux operating system and the C++ programming language. If you are developing a CT Bus management application, you should also have a thorough understanding of CT Bus clocking concepts (Primary, Secondary and Network Reference clock masters).

The information in this guide is organized as follows:
Refer to the following documents and Web sites for more information:
About This Publication

This chapter describes the OA&M API. The following topics are included:
The classes and functions of the OA&M API support the development of applications that facilitate the Operation, Administration, and Maintenance (OA&M) of Intel® Dialogic systems. For example, you can create a system management application that monitors CT Bus clocking fault events and automatically performs clock reference (Primary, Secondary, or Network Reference) recovery without user intervention.
The classes in the OA&M API can be divided into the following three categories:
Figure 1 depicts the names and member functions of each class included in the OA&M API library.

Figure 1. OA&M API Classes
The features available through the OA&M API include the following:
current system software release. To incorporate the updates, you must recompile any existing application that uses the CTPLATFORMVERSIONINFO data structure or the ICTNode::GetSystemReleaseVersionInfo( ) function. Refer to the OA&M API

for Linux Operating Systems Library Reference for information about the CTPLATFORMVERSIONINFO data structure and the ICTNode::GetSystemReleaseVersionInfo( ) function.
The System Component classes of the OA&M API (CCTDomain, ICTNode, ICTBoard, and ICTClockAgent) are organized into a hierarchy as shown in Figure 1, “OA&M API Classes”, on page 10. Since the CCTDomain class resides at the top of the class hierarchy, each application built from the OA&M API must first instantiate a CCTDomain object as an entry point into the OA&M system. You must then adhere to the class hierarchy as you instantiate other System Component objects. For example, since the ICTClockAgent class resides at the bottom of the OA&M API class hierarchy, you must instantiate and query all other System Component objects (CCTDomain, ICTNode, ICTBoard) until you reach the ICTClockAgent class.
Refer to Chapter 4, “Application Development Guidelines” for procedural information about instantiating CCTDomain, ICTNode, ICTBoard, and ICTClockAgent objects.
The event notification framework is the Intel® Dialogic subsystem for sending asynchronous OA&M events to applications. The framework is implemented using supplier objects, consumer objects and event notification channels as shown in Figure 2:

Figure 2. Event Notification Framework
(linked to libdlgadminconsumerfw.so for Linux) (linked to libdlgadminconsumerfw.lib for Windows)
libdlgadminconsumerfw.so (Linux) libdlgadminconsumerfw.lib (Windows)
DlgAdminConsumer object (registered with ADMIN_CHANNEL)
DlgAdminConsumer object (registered with FAULT_CHANNEL)
CLOCK_EVENT_CHANNEL
FAULT_CHANNEL
ADMIN_CHANNEL
Intel NetStructure Series Board
Intel NetStructure Series Board
Intel NetStructure Series Board
Intel® Dialogic system software components, such as device drivers and firmware, are the supplier objects. They generate events that are broadcast to consumer objects via the event notification channels. The DlgAdminConsumer class allows you to instantiate consumer objects and register them to receive events from one of the event notification channels. The CEventHandlerAdaptor class allows you to instantiate user-defined event handler objects that are invoked when DlgAdminConsumer objects receive events.

The framework contains the following event notification channels, each of which carries specific types of events:
architecture boards only generate NETWORK_ALARM_CHANNEL events.
Refer to Chapter 2, “Event Handling” for more information about the event notification framework.



This chapter provides information about receiving and handling asynchronous events that are transmitted via the event notification framework.
For your application to receive events from the event notification framework you must follow these steps:
When a DlgAdminConsumer object receives an event through its associated event notification channel, it compares the event’s msgId field to its filter array. If a matching filter is found, the associated event handler object is invoked.

Event Handling

This chapter describes the error handling capabilities provided by the OA&M API.
When an error occurs during execution of a function in one of the System Component classes (CCTDomain, ICTNode, ICTBoard or ICTClockAgent), an exception is thrown. Exceptions can be caught and handled by including standard C++ try/catch blocks throughout your application code.
The following sample try/catch block catches and handles an exception that is thrown when the application attempts to use an incorrect parameter (“128.0.0.1” instead of “127.0.0.1”) for the CCTDomain::GetNode( ) function:
//processing
//Initiate and catch DLG_INVALID_SERVER exception try { cout
The CCTDasiException class defines the exceptions that can be thrown by the CCTDomain, ICTNode, ICTBoard or ICTClockAgent member functions.
For a complete list of error codes that can be included in CCTDasiException objects, refer to the OA&M API for Linux Operating Systems Library Reference.
//continue processing

Error Handling

This chapter provides information about developing applications using the OA&M API. It includes the following sections:
The OA&M API contains four System Component classes:
When an object is created from any one of these classes, the class member functions can be invoked to provide information about the created object. However, classes in the OA&M API are arranged in a hierarchy as shown in Figure 1, “OA&M API Classes”, on page 10. Only CCTDomain objects can be directly instantiated. You must perform the following procedure to instantiate System Component objects in the OA&M API:
You can then use any of the following functions to get/set the TDM bus information of any one of the ICTClockAgent objects in the returned STL list:

If you are using any of ICTClockAgent class member functions (for example, to develop a customized system clocking daemon) you must disable the clocking daemon that is included with the Intel® Dialogic system software by editing the ClockDaemonMode parameter in the dlgsys.cfg file. Refer to either of the following documents for more information about disabling the ClockDaemonMode parameter via the dlgsys.cfg file:
This section provides instructions for using various Intel® Dialogic libraries to develop applications that support peripheral hot swap. The board replacement could be driven by an application (for example, if statistics are showing a degradation of service) or could be driven by an operator (for example, periodic hardware maintenance).
The following procedure provides information on developing applications that support Basic Hot Swap:
accommodate the dynamic removal/insertion of virtual devices. Do not include permanent references to virtual device names within your application; instead, depend on the SRL device mapper functions to get virtual device names.
Application Development Guidelines

Refer to the System Release Administration Guide for information about the stopbrd, removebrd, and startbrd utilities.
Refer to the High Availability for Linux Operating System Demo Guide for information on executing the High Availability demo programs included with the Intel® Dialogic® System Software.
Refer to the Intel® DM3 Architecture Products on Linux Configuration Guide or the Intel
NetStructure® IPT Series on Linux Configuration Guide for complete information about configuring the boards.
Application Development Guidelines

Application Development Guidelines

This chapter provides general information for building applications that use the OA&M library. The following topics are included in this chapter:
An application that uses the OA&M API library must include references to the OA&M API header files and must include the appropriate library files. This information is provided in the following topics:
The following header file contains equates and #include directives that are required by all applications that uses the OA&M library:
dasi.h
primary OA&M API header file
The following header files are required by applications that receive and process events from the OA&M event notification framework:
dlgadminconsumer.h
defines the DlgAdminConsumer class
dlgadminmsg.h
defines the CEventHandlerAdaptor class
dlgadminevents.h
includes the payload format for ADMIN_CHANNEL events
dlgcclockingevents.h
includes the payload format for CLOCK_EVENT_CHANNEL events
dlgceventbasedef.h
provides the definitions of all event channels
dlgcprocfaultevents.h
includes the payload format for FAULT_CHANNEL events
dlgcnetworkalarmevents.h
includes the payload format for NETWORK_ALARM_CHANNEL events

dlgeventproxydef.h
defines the generic data structure for OA&M events
The following library file must be linked to all applications that use the OA&M API:
libdlgdasi.so
primary OA&M API shared object file
The following library file must be linked to applications that receive and process events from the OA&M event notification framework:
libdlgadminconsumerfw.so
shared object file that contains event consumer objects
In System Release 6.0 and later, the following variables are included to provide a standardized way of referencing the directories that contain header files and shared objects:
variable that points to the directory where header files are stored.
variable that points to the directory where shared library files are stored.
These variables are automatically set at login and should be used in compiling and linking commands. The following is an example of a compiling and linking command that uses these variables: cc -I${INTEL_DIALOGIC_INC} -o myapp myapp.c -L${INTEL_DIALOGIC_LIB} -lgc
Building Applications


Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.