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.

}<br />

request a blind or supervised call transfer — gc_InvokeXfer( )<br />

/* If the consultation call and the original call associate the same line device,<br />

* assign the consultation crn as the extra_crn */<br />

extra_crn = port->consultation_crn;<br />

}<br />

else<br />

{<br />

/* If the consultation call and the original call do not associate the same line device,<br />

* find the line device of the consultation call (assumes extra_port_num is valid)<br />

* and assign the crn as the extra_crn */<br />

extra_pline = port + port_num;<br />

extra_crn = extra_pline->crn;<br />

}<br />

See Also<br />

/* Reroute the original call to the destination at 127.0.0.1 */<br />

if (gc_InvokeXfer(pline->crn, 0, "TA:127.0.0.1", NULL, 0, EV_ASYNC) == -1)<br />

{<br />

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

gc_ErrorInfo( &gc_error_info );<br />

printf ("Error: gc_InvokeXfer() on device handle: 0x%lx, GC ErrorValue: 0x%hx - %s,<br />

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_AcceptInitXfer( )<br />

gc_AcceptXfer( )<br />

gc_InitXfer( )<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 217<br />

Dialogic Corporation

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

Saved successfully!

Ooh no, something went wrong!