There is an endless loop (while(1)) in the main( ) function in the APPMAIN.C file. In that loop, the application waits for an event by calling the sr_waitevt( ) function.
All channels are initialized to the INIT state.
As soon as an event is received, the event type, the channel number, and the reason (reason for the event, if there is one) are analyzed, and the appropriate state machine function is called.
After all the operations are performed within the channel's event state, the next state machine function is updated according to the event received and the SessionState.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Intel Corporation