
C H A P T E R 7 : O P T I O N S F O R A D V A N C E D U S E R S
38
outgoing calls. When the call is cleared the state machine table returns to its
idle state.
Reserved words
Reserved words like DO, NO_STATE, etc. are listed in CASSetup.h.
7.2.4 State’s Line Structure
Each text line in the body of each state is composed of 6 columns:
•
action/event
•
function
•
parameter #1
•
parameter #2
•
parameter #3
•
next state
These columns are described in the following.
Action/event
The name of the table’s events which are the possible triggers for the whole
protocol state machine. Those can be selected from the list of events defined
in the CASSetup.h file (e.g. EV_DISCONNECT_INCOMING).
At the beginning of the state, there can be up to 4 special unconditional
action/events called FUNCTION. These events are functions that are
unconditionally performed when the table reaches the state. These actions
are labeled FUNCTION0 to FUNCTION3.
Following is the list of available protocols table actions (events to the state
machine):
1)
User command oriented:
EV_PLACE_CALL - when the user places a call.
EV_ANSWER
- when the user answers a call.
EV_DISCONNECT_OUTGOING
- when the user disconnects a
call and the call is outgoing.
EV_DISCONNECT_INCOMING - when the user disconnects a call and
the call is incoming.
EV_RELEASE_CALL
- when the user releases a call.
2)
CAS change oriented: