User`s guide

Dialogic
®
System Release 6.0 PCI for Windows
®
Release Update, Rev 62 — January 30, 2008 128
Dialogic Corporation
LINEDEV LineDev; /* GlobalCall line device handle */
char DevName[50];
long ProtocolID;
} port[120];
void process_event()
{
METAEVENT metaevent;
int evttype;
GC_RTCM_EVTDATA * t_pRtcmEvt = NULL;
int t_Result = 0;
int index = 0;
struct channel *pline = NULL;
char t_ProtocolName[30];
int t_NumParms = 0;
int t_RequesID = 0;
CDP_PARM t_CDPVarParms[3] = {
{"CDP_IN_WinkStart", GC_VALUE_INT, 0},
{"CDP_OUT_WinkStart", GC_VALUE_INT, 0},
{"CDP_OUT_Send_Alerting_After_Dialing", GC_VALUE_INT, 0}
};
/* Populate the metaEvent structure */
if(gc_GetMetaEvent(&metaevent) != GC_SUCCESS)
{
printf("gc_GetMetaEvent() failed \n");
/* Process error */
}
/* process GlobalCall events */
if ((metaevent.flags & GCME_GC_EVENT) == 0)
{
printf("Received a non-GC Event 0x%lx\n", metaevent.evttype);
return;
}
evttype = metaevent.evttype;
if (metaevent.usrattr)
{
pline = (struct channel *) metaevent.usrattr;
}
switch (evttype)
{
case GCEV_UNBLOCKED:
{
int t_IntVal = 1;
t_Result = ObtainProtocolIDAndName(pline->LineDev, t_ProtocolName,
&pline->ProtocolID);
if (t_Result)
{
/* Error processs */
}
t_NumParms = 3;
t_CDPVarParms[0].valuep = &t_IntVal;
t_CDPVarParms[1].valuep = &t_IntVal;
t_CDPVarParms[2].valuep = &t_IntVal;
/* Setting new values to CDP variables */
t_Result = SetCDPVarParms(pline->ProtocolID, t_NumParms, t_CDPVarParms,
&t_RequesID);
if (t_Result)
{
/* Processs error */
}
}
break;
case GCEV_GETCONFIGDATA:
t_pRtcmEvt = (GC_RTCM_EVTDATA *) metaevent.evtdatap;
if (! t_pRtcmEvt || !t_pRtcmEvt->retrieved_parmblkp)