Dialogic Dialogic Global Call IP IP Phone User Manual


 
420 Dialogic
®
Global Call IP Technology Guide — November 2007
Dialogic Corporation
gc_ReqModifyCall( ) — request modification of call attributes
gc_util_delete_parm_blk(parmblkp);
} /* End of function. */
The following example illustrates the use of gc_ReqModifyCall( ) to refresh the Contact header:
.
.
/* Dialogic Header Files */
#include <gcip.h>
#include <gclib.h>
.
.
.
/* Request Contact refresh: */
/* Assumes: 1) caller has verified call to be in connected state */
/* 2) caller has enabled event handler for GCEV_MODIFY_CALL_ACK, */
/* GCEV_MODIFY_CALL_REJ, and GCEV_MODIFY_CALL_FAIL. */
int refreshToHomeLocation (CRN crn)
{
char *pContactHeader = "Contact: Rich <sip:r.intelligent@myhomeISP.com>";
gc_util_insert_parm_ref(&parmblkp,
IPSET_SIP_MSGINFO,
IPPARM_SIP_HDR,
(unsigned char)strlen(pContactIdHeader) + 1,
pContactHeader);
if (NULL == parmblkp) return FAILURE;
if (gc_ReqModifyCall(crn, parmblkp, EV_ASYNC) < 0) return FAILURE;
gc_util_delete_parm_blk(parmblkp);
} /* End of function. */
See Also
gc_AcceptModifyCall( )
gc_RejectModifyCall( )