08.01.2013 Views

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

gc_SetAlarmConfiguration( ) — set alarm configuration parameter values<br />

Parameter Description<br />

linedev <strong>Global</strong> <strong>Call</strong> line device handle. The linedev parameter must be set to<br />

NULL to configure alarm source objects. When this value is NULL, the<br />

default behaviors for devices opened after the function call are also<br />

changed.<br />

aso_id alarm source object (ASO) ID. Use the<br />

gc_AlarmSourceObjectNameToID( ) function to obtain the ASO ID for<br />

the desired alarm source object.<br />

The ALARM_SOURCE_ID_NETWORK_ID can be used if the network<br />

ASO ID associated with the line device is desired.<br />

alarm_list points to the alarm list. The alarm list will contain the list of alarms to be<br />

passed to the application. (See ALARM_LIST, on page 414.) NULL is<br />

not allowed.<br />

alarm_config_type performs two roles. The first role is to specify whether the application<br />

wants to be notified when any of the alarms in the alarm_list occur and to<br />

classify the alarms in the alarm_list as either blocking or non-blocking.<br />

Possible values are:<br />

ALARM_CONFIG_BLOCKING – indicates whether the specified<br />

alarms for the given aso_id and linedev are to be blocking or nonblocking.<br />

The data field for each alarm in alarm_list will contain<br />

either ALARM_BLOCKING (for blocking alarms) or<br />

ALARM_NONBLOCKING (for nonblocking alarms).<br />

ALARM_CONFIG_NOTIFY – indicates whether the application<br />

wants to be notified of the alarms in the alarm_list for the given<br />

aso_id and linedev. The data field for each alarm in alarm_list will<br />

contain either ALARM_NONOTIFY (if the application is not to be<br />

notified) or ALARM_NOTIFY (if the application is to be notified).<br />

The second role is to specify whether ASOs, boards, or time slots are to<br />

be configured. For this purpose, the following values may be ORed in:<br />

ALARM_CONFIGURE_BOARDS – configure all the boards for the<br />

specified ASO ID<br />

ALARM_CONFIGURE_BOARDS_AND_TIMESLOTS – configure<br />

all the boards and time slots for the specified ASO ID<br />

ALARM_CONFIGURE_TIMESLOTS – configure the time slots for<br />

the specified board line device<br />

See Table 12 for more information about setting flags.<br />

294 Dialogic ® <strong>Global</strong> <strong>Call</strong> <strong>API</strong> <strong>Library</strong> <strong>Reference</strong> — January 2008<br />

Dialogic Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!