Dialogic 05-0867-005 Table Top Game User Manual


 
gets information elements associated with a line device cc_GetInfoElem( )
123
Network Facility IE using the cc_GetCallInfo( ) function is no longer
supported.
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <srllib.h>
#include <cclib.h>
long evt_handl;
void main(...)
{
char dev_name[20];
LINEDEV devhdl[MAXDEVS];
CRN crn[MAXDEVS];
int ch;
sprintf(dev_name, "dtiB1");
if(cc_Open(devhdl[0], dev_name, 0) != 0)
{
printf("cc_Open(%s) failed\n", dev_name);
exit(0);
}
for(ch = 1; ch < MAXDEVS; ch++)
{sprintf(dev_name, "dtiB1T%d", ch);
if(cc_Open(devhdl[ch], dev_name, 0) != 0)
{
printf("cc_Open(%s) failed\n", dev_name);
exit(0);
}
if(cc_WaitCall(devhdl[ch], &crn[ch], NULL, -1, EV_ASYNC) == -1)
{
printf("cc_WaitCall(%s) failed\n", dev_name);
exit(0);
}
}
while(FOREVER)
{
sr_waitevtEx(devhdl, MAXDEVS, -1, &evt_handl);
process_event(evt_handl);
}
}
int process_event(evthandl)
unsigned long evthandl;
{
LINEDEV event_dev = sr_getevtdev(evthandl);
switch (sr_getevttype(evthandl))
{
case CCEV_NOTIFY:
{
IE_BLK ie;