Dialogic Dialogic Global Call IP IP Phone User Manual


 
412 Dialogic
®
Global Call IP Technology Guide — November 2007
Dialogic Corporation
gc_RejectModifyCall( ) — reject proposed modification of call attributes
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;
case GCEV_MODIFY_CALL_ACK:
// indication that re-invite was accepted (200 ok received ) by the remote endpoint.
// This metaevent may have an IPSET_SDP/IPPARM_SDP_OFFER or
// IPSET_SDP/IPPARM_SDP_ANSWER attached.
.
.
.
break;
case GCEV_SIP_200OK:
// indication that the library needs to send a SIP ACK.
// A parameter block containing a IPSET_SDP/IPPARM_SDP_ANSWER would be included
// in the gc_SipAck for an outbound invite/re-invite delayed offer call scenario.
if (gc_SipAck(crn, NULL, EV_ASYNC) != GC_SUCCESS)
{
// call application error handler to drop the call
applicationHandleError(...);
}
break;
case GCEV_SIP_ACK_FAIL:
// gc_SipAck completion metaevent indicating the Sip Ack could not be sent.
// Invoke the application error handler to drop the call.
applicationHandleError(...);
break;
case GCEV_SIP_ACK_OK:
// gc_SipAck completion metaevent indicating the Sip Ack was successfully sent
break;