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 />

switch(metaevent.evttype) {<br />

case GCEV_L2FRAME:<br />

/* retrieve signaling information from queue */<br />

if ( gc_GetFrame(ldev, &recvfrmptr) != GC_SUCCESS) {<br />

/* Process the error as decided earlier */<br />

}<br />

else {<br />

/* succeeded, process signaling information */<br />

}<br />

break;<br />

send a Layer 2 frame — gc_SndFrame( )<br />

case GCEV_D_CHAN_STATUS:<br />

/* Send the message */<br />

/* Fill up the sndfrm according to call control technology being used */<br />

sndfrmprt = &sndfrm;<br />

if(gc_SndFrame(ldev, sndfrmptr) != GC_SUCCESS) {<br />

/* Process the error as decided earlier */<br />

}<br />

else {<br />

/* succeeded, process signaling information */<br />

}<br />

}<br />

return 0;<br />

See Also<br />

gc_Extension( )<br />

gc_GetFrame( )<br />

gc_SetUserInfo( )<br />

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

Dialogic Corporation

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

Saved successfully!

Ooh no, something went wrong!