Dialogic Dialogic Global Call IP IP Phone User Manual


 
262
Dialogic Corporation
default:
// Since UUIE data can be present only for the above mentioned events,
// return from the fuction for all other events.
printf("UUIE retrieval is not supported for this type of event.\n");
return(-1);
break;
}
// Initialize the GC parm data.
INIT_GC_PARM_DATA_EXT(&parm);
// Now go through all the GC parm datas of the GC parm block to find out if there is a
// setid/parmid combination of IPSET_CALLINFO/IPPARM_UUIE_ASN1. Parm block with
// this particular combination contains the ASN1 encoded UUIE.
rc = gc_util_next_parm_ex(parm_blk,&parm);
if (rc != 0)
{
return -1;
}
while (rc != EGC_NO_MORE_PARMS)
{
switch (parm.set_ID)
{
case IPSET_CALLINFO:
switch (parm.parm_ID)
{
case IPPARM_UUIE_ASN1:
// This GC parm data contains the ASN1 encoded UUIE.
pChar = (unsigned char *)parm.pData;
printf("The ASN1 encoded UU-IE data of size"
"%d is at %x.\n", parm.data_size, parm.pData);
for(i=0; i< parm.data_size; i++)
{
printf("%d ", *(unsigned char *)(pChar+i));
}
// The user can pass this pChar to some ASN.1 decoder to convert it
// to a textual format.
break;
}
break;
}
// Get the next GC parm data.
rc = gc_util_next_parm_ex(parm_blk,&parm);
}
return(0);
}
4.20 Specifying RTP Stream Establishment
Note: The information in this section only applies when the Dialogic
®
Global Call API IP Call Control
library is started in the first party call control (1PCC) operating mode. The capability described in
this section is not supported when the library is started in the third party call control (3PCC)
operating mode.
When using the Dialogic
®
Global Call API, RTP streaming can be established before the call is
connected (that is, before the calling party receives the GCEV_CONNECTED event). This feature
enables a voice message to be played to the calling party (for example, a message stating that the
called party is unavailable for some reason) without the calling party being billed for the call.