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_GetMetaEvent( ) — retrieve event information for the current SRL event<br />

}<br />

}<br />

}<br />

See Also<br />

metaevent.evtdev, 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 />

evttype = metaevent.evttype;<br />

if (metaevent.flags & GCME_GC_EVENT)<br />

{<br />

/* process <strong>Global</strong><strong>Call</strong> event */<br />

switch (pline -> state)<br />

{<br />

case NULL_STATE:<br />

switch (evttype) {<br />

case GCEV_OFFERED:<br />

pline -> state = OFFERED_STATE;<br />

accept_call();<br />

break;<br />

default:<br />

/* handle other events here */<br />

break;<br />

}<br />

break;<br />

case OFFERED_STATE:<br />

switch (evttype) {<br />

case GCEV_ACCEPT:<br />

pline -> state = ACCEPTED_STATE;<br />

answer_call();<br />

break;<br />

default:<br />

/* handle other events here */<br />

break;<br />

}<br />

break;<br />

case ACCEPTED_STATE:<br />

switch (evttype) {<br />

case GCEV_ANSWERED:<br />

pline -> state = CONNECTED_STATE;<br />

/*<br />

* Can now do voice functions, etc.<br />

*/<br />

return(0); /* SUCCESS RETURN POINT */<br />

default:<br />

/* handle other events here */<br />

break;<br />

}<br />

break;<br />

}<br />

}<br />

else<br />

{<br />

/* Process non-<strong>Global</strong><strong>Call</strong> event */<br />

}<br />

gc_GetLineDev( )<br />

gc_GetMetaEventEx( ) (Windows ® extended asynchronous model only)<br />

gc_ResultInfo( )<br />

gc_ResultValue( ) (deprecated)<br />

170 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!