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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

gc_ResetLineDev( ) — reset the line device state and disconnect calls<br />

Cautions<br />

Errors<br />

When a time slot (for example, dtiB1T1) is opened, it is put in the out-of-service state,<br />

blocking all incoming calls on that time slot. The application must issue a gc_Wait<strong>Call</strong>( ) to<br />

accept incoming calls or a gc_Make<strong>Call</strong>( ) to make outgoing calls. When<br />

gc_ResetLineDev( ) is issued, it puts the time slot in the out-of-service state, disconnecting<br />

any existing calls and blocking any further incoming calls.<br />

Any synchronous call issued on this time slot—for example, gc_Wait<strong>Call</strong>( )—is aborted. The<br />

gc_ResetLineDev( ) function does not terminate a synchronous call issued in a different<br />

process.<br />

The gc_ResetLineDev( ) function should be used when the application has lost control of the<br />

line due to a protocol error. It should not be used to switch between states, such as to simplify<br />

the call control process. In general, calling gc_ResetLineDev( ) from the Idle state is an<br />

acceptable practice, but using gc_ResetLineDev( ) in some call states can lead to other<br />

unnecessary protocol errors.<br />

After successful completion of this function, the application must issue a new gc_Wait<strong>Call</strong>( )<br />

function to return the channel to the Idle state to be ready to receive the next call on the<br />

channel.<br />

Do not call any <strong>Global</strong> <strong>Call</strong> function until after the GCEV_RESETLINEDEV event is received<br />

for this line. Likewise, ignore any other events until after the GCEV_RESETLINEDEV event<br />

is received.<br />

If this function returns

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

Saved successfully!

Ooh no, something went wrong!