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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gc_AlarmNumber( ) — return the alarm number for the current alarm event<br />

Example<br />

#include <br />

#include <br />

#include <br />

#include <br />

METAEVENT metaevent;<br />

long alarm_number;<br />

int rc;<br />

/*<br />

-- This code assumes that the current event is GCEV_ALARM<br />

-- event and that gc_GetMetaEvent() has already been called<br />

-- to place the current event information into metaevent<br />

*/<br />

See Also<br />

rc = gc_AlarmNumber(&metaevent, &alarm_number);<br />

if (rc < 0)<br />

{<br />

/* get and process the error */<br />

}<br />

else<br />

{<br />

printf("Alarm nunber is %d\n", alarm_number);<br />

}<br />

gc_AlarmName( )<br />

gc_AlarmNumberToName( )<br />

48 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!