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.

accept request to initiate a supervised transfer — gc_AcceptInitXfer( )<br />

/*<br />

* Assume the following have been done:<br />

* 1. Opened line devices for each time slot on the network interface board.<br />

* 2. Each line device is stored in linebag structure "port".<br />

* 3. The original (primary) call has been established between Transferring party A and<br />

* Transferred party B and the call is in connected or on hold state.<br />

* 4. The party C received the GCEV_REQ_INIT_XFER.<br />

*/<br />

int accept_transferinitiate(int port_num)<br />

{<br />

GC_INFO gc_error_info; /* <strong>Global</strong> <strong>Call</strong> error information data */<br />

}<br />

See Also<br />

/* Find info for this time slot, specified by 'port_num' */<br />

/* (assumes port_num is valid) */<br />

pline = port + port_num;<br />

/* Accept the call transfer request */<br />

if (gc_AcceptInitXfer(pline->crn, NULL, EV_ASYNC) == -1)<br />

{<br />

/* process error return as shown */<br />

gc_ErrorInfo( &gc_error_info );<br />

printf ("Error: gc_AcceptInitXfer() on device handle: 0x%lx,<br />

GC ErrorValue: 0x%hx - %s, CCLibID: %i - %s, CC ErrorValue: 0x%lx - %s\n",<br />

pline->ldev, gc_error_info.gcValue, gc_error_info.gcMsg,<br />

gc_error_info.ccLibId, gc_error_info.ccLibName,<br />

gc_error_info.ccValue, gc_error_info.ccMsg);<br />

return (gc_error_info.gcValue);<br />

}<br />

return (0);<br />

gc_AcceptXfer( )<br />

gc_InitXfer( )<br />

gc_InvokeXfer( )<br />

gc_RejectInitXfer( )<br />

gc_RejectXfer( )<br />

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

Dialogic Corporation

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

Saved successfully!

Ooh no, something went wrong!