Dialogic Dialogic Global Call IP IP Phone User Manual


 
Dialogic
®
Global Call IP Technology Guide — November 2007 151
Dialogic Corporation
IP-Specific Operations
case IPSET_MSG_Q931:
switch (parmp->parm_ID)
{
case IPPARM_MSGTYPE:
switch ((*(int *)(parmp->value_buf)))
{
case IP_MSGTYPE_Q931_FACILITY:
printf("\tReceived extension data IP_MSGTYPE_Q931_FACILITY\n");
break;
default:
printf("\tReceived unknown MSG_Q931 extension parmID %d\n",
parmp->parm_ID);
break;
} /* end switch ((int)(parmp->value_buf)) */
break;
}/* end switch (parmp->parm_ID) for IPSET_MSG_Q931 */
break;
case IPSET_MSG_H245:
switch (parmp->parm_ID)
{
case IPPARM_MSGTYPE:
switch ((*(int *)(parmp->value_buf)))
{
case IP_MSGTYPE_H245_INDICATION:
printf("\tReceived extension data IP_MSGTYPE_H245_INDICATION\n");
break;
default:
printf("\tReceived unknown MSG_H245 extension parmID %d\n",
parmp->parm_ID);
break;
}/* end switch ((int)(parmp->value_buf)) */
break;
}/* end switch (parmp->parm_ID) for IPSET_MSG_H245 */
break;
default:
printf("\t Received unknown extension setID %d\n",parmp->set_ID);
break;
}/* end switch (parmp->set_ID) */
parmp = gc_util_next_parm(parm_blk,parmp);
}
return GC_SUCCESS;
}
Note: IPPARM_CALLID is a set of bytes and should not be interpreted as a string.
Retrieving Call ID
The following code example illustrates how to request Call ID information via a gc_Extension( )
call.
/*
* Assume the following has been done:
* 1. device has been opened (e.g. :N_iptB1T1:P_SIP, :N_iptB1T2:P_SIP, etc...)
* 2. gc_WaitCall() has been issued to wait for a call.
* 3. gc_GetMetaEvent() or gc_GetMetaEventEx() (Windows) has been called
* to convert the event into metaevent.
* 4. a GCEV_OFFERED has been detected.
*/