Dialogic Dialogic Global Call IP IP Phone User Manual


 
Dialogic
®
Global Call IP Technology Guide — November 2007 409
Dialogic Corporation
reject proposed modification of call attributes — gc_RejectModifyCall( )
updateRTPGUI(&rtp);
proposal_accepted = TRUE;
}
}
}
/* if proposal is acceptable accept the request */
/* format accepted attributes (i.e. media types) in a parmblk (optional, */
/* NULL if none) */
if (proposal_accepted)
{
if (gc_AcceptModifyCall(crn, replyParmblkp, EV_ASYNC) < 0)
/* failure logic here */
}
else /* not acceptable so respond with SIP Client Error */
/* final response of 488 Not Acceptable Here */
if (gc_RejectModifyCall(crn,
IPEC_SIPReasonStatus488NotAcceptableHere,
EV_ASYNC) < 0)
/* failure logic here */
break;
}
case GCEV_ACCEPT_MODIFY_CALL:
.
.
.
/* notify user of changed attribute */
.
.
.
break;
case GCEV_ACCEPT_MODIFY_CALL_FAIL:
/* process failure to change attribute */
if (gc_ResultInfo(&metaevent, &t_info) < 0)
/* failure logic here */
/* process information contained in t_info */
/* can optionally call gc_RejectModifyCall( ) to retry */
.
.
.
break;
case GCEV_REJECT_MODIFY_CALL:
.
.
.
/* notify user of rejected attribute */
.
.
.
break;
case GCEV_REJECT_MODIFY_FAIL:
/* process failure to reject request */
if (gc_ResultInfo(&metaevent, &t_info) < 0)
/* failure logic here */
/* process information contained in t_info */
/* can optionally call gc_RejectModifyCall( ) to retry */
.
.
.
break;