User`s guide

Dialogic
®
System Release 6.0 PCI for Windows
®
Release Update, Rev 62 — January 30, 2008 169
Dialogic Corporation
Inbound QSIG NCAS Call Detection Code Example
The following code segment demonstrates how to retrieve the call type from the
GCEV_OFFERED event triggered by an incoming call to determine if the call is an NCAS
call or a standard circuit-switched call.
case GCEV_OFFERED:
GC_PARM_BLKP gcParmBlkp = NULL;
GC_PARM_DATAP t_gcParmDatap = NULL;
EXTENSIONEVTBLK *ext_evtblkp = NULL;
ext_evtblkp = (EXTENSIONEVTBLK *)meta_event.extevtdatap;
gcParmBlkp = &ext_evtblkp->parmblk;
while (t_gcParmDatap = gc_util_next_parm(gcParmBlkp, t_gcParmDatap))
{
switch (t_gcParmDatap->set_ID)
{
case GCIS_SET_CALLTYPE:
switch(t_gcParmDatap->parm_ID)
{
case GC_PARM_CALL_TYPE:
// Determine the Call Type.
switch (t_gcParmDatap->value_buf)
{
case CALLTYPE_NCAS:
cout << "NCAS call detected" << endl;
break;
case CALLTYPE_CIRCUIT:
cout << "Regular call detected" << endl;
break;
}
break;
default:
cout << "Unknown PARM ID" << endl;
break;
}
break;
default:
cout << "Unknown SET ID" << endl;
break;
}
}
break;
1.47.2 Documentation
The online bookshelf provided with Dialogic
®
System Release 6.0 PCI for Windows
®
contains information about all system release features including features for application
development, configuration, administration, and diagnostics.
For more information about the Dialogic
®
Global Call API, see the following documents:
Dialogic
®
Global Call API Programming Guide
Dialogic
®
Global Call API Library Reference