PREV TOC HOME INDEX NEXT


6.3.2 PSTNCallControl::Null State

The application waits for a GCEV_DETECTED, GCEV_OFFERED, or USR_MAKECALL event.

In the case of a GCEV_DETECTED event, the state transitions to the Detected state.

In the case of a GCEV_OFFERED event, the application calls getCallAddrInfo( ) to get and set DNIS and ANI and then calls acceptCall( ). The state transitions to the Accepting state.

In the case of a USR_MAKECALL event, the application calls makeCall( ) and the state transitions to makingCall.

If the application receives a GCEV_DISCONNECTED event, it calls getResultValue( ) to get the disconnect reason and then calls dropCall( ). If the dropCall( ) function fails, the application calls resetLineDevice( ) to reset the line device and the state transitions to Init. Otherwise, the state transitions to Dropping.

If the application receives a USR_DISCONNECT event it retrieves the DropReason from the EventData and calls dropCall( ). If the dropCall( ) function fails, the application calls resetLineDevice( ) to reset the line device and the state transitions to Init. Otherwise, the state transitions to Dropping.


PREV TOC HOME INDEX NEXT

Click here to contact Telecom Support Resources

Copyright 2002, Intel Corporation
All rights reserved
This page generated October, 2002