IP Media Server (Global Call) Demo Guide — November 2003 39
Demo Details
Figure 5. System Initialization
5.5 Event Handling
This section describes how the IP Media Server (Global Call) demo handles events. It contains the
following topics:
• Event Mechanism
• Handling Keyboard Input Events
• Handling SRL Events
• Handling Application Exit Events
5.5.1 Event Mechanism
The IP Media Server (Global Call) demo uses the SRL mechanism to retrieve events. When an
event occurs, SRL calls event handlers automatically. All events are received by the SRL and then
passed to the CallbackHdlr( ) function for handling.
In the initialization phase of the demo, the main( ) function sets up the call-back handler, by calling
PDLsr_enbhdlr( ).
Application Configuration
Event Router
1. Parse .cfg file
2. Start router
Voice Module Voice Board
Voice State
Machine
Voice Device
7. Start Voice Module 8. Start Voice Board
9. Start VoiceDevice
10. Start Voice State
Machine
IP Module IP Board
IP State Machine
IP Device
3. Start IP Module 4. Start IP Board
5. Start IP Device
6. Start IP State Machine