08.01.2013 Views

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gc_RejectXfer( ) — reject call transfer request<br />

Parameter Description<br />

crn call reference number for the call between the remote transferring party A<br />

and the local party that received the call transfer request<br />

reason specifies the value of rejection reason, which may be protocol-specific.<br />

For H.323/H.450.2, the defined rejection reasons are:<br />

parmblkp ignored for IP<br />

After successfully rejecting the request, the call state of local party B or C returns to its original call<br />

state (GCST_CONNECTED).<br />

When receiving the GCEV_REQ_XFER event, the application can obtain the information for the<br />

rerouting number or address from extevtdatap in the METAEVENT data structure. Because the<br />

extevtdtatap is managed by GCLib/CCLib (allocated/deleted automatically), the user application<br />

does not need to allocate or deallocate extevtdatap.<br />

Preceding Events<br />

GCEV_REQ_XFER<br />

unsolicited event, notifies application at the local party receiving the call transfer request from<br />

remote party A<br />

Termination Events<br />

GCEV_REJ_XFER<br />

indicates that the gc_RejectXfer( ) function was successful, that is, the local party<br />

successfully rejected the call transfer request from the remote party<br />

GCEV_REJ_XFER_FAIL<br />

indicates that the function failed. For more information, see the “Error Handling” section in<br />

the Dialogic ® <strong>Global</strong> <strong>Call</strong> <strong>API</strong> Programming Guide.<br />

Cautions<br />

GCVAL_REJREASON_INVADDR<br />

GCVAL_REJREASON_INSUFFINFO<br />

GCVAL_REJREASON_NOTALLOWED<br />

GCVAL_REJREASON_NOTSUBSCRIBED<br />

GCVAL_REJREASON_UNAVAIL<br />

GCVAL_REJREASON_UNSPECIFIED<br />

This parameter is mandatory.<br />

mode set to EV_ASYNC for asynchronous execution<br />

The gc_RejectXfer( ) function can be called only when the call to be transferred is in the<br />

GCST_REQ_XFER call state (that is, after receiving GCEV_REQ_XFER).<br />

252 Dialogic ® <strong>Global</strong> <strong>Call</strong> <strong>API</strong> <strong>Library</strong> <strong>Reference</strong> — January 2008<br />

Dialogic Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!