Demo Details

Figure 5. System Initialization

1. Parse .cfg file

Application

Configuration

2. Start router

3. Start IP Module

4. Start IP Board

 

 

 

 

 

 

 

 

 

Event Router

 

 

IP Module

 

 

IP Board

 

 

 

 

 

 

 

 

 

 

 

 

 

5. Start IP Device

IP Device

6. Start IP State Machine

IP State Machine

7. Start Voice Module

8. Start Voice Board

 

 

 

 

 

 

 

Voice Module

 

 

Voice Board

 

 

 

 

 

 

 

 

 

 

 

 

 

9. Start VoiceDevice

 

 

 

 

 

 

 

 

 

Voice Device

 

 

 

 

 

 

 

 

 

 

 

10. Start Voice State

 

 

 

 

 

Machine

Voice State

Machine

5.5Event 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.1Event 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( ).

IP Media Server (Global Call) Demo Guide — November 2003

39

Page 39
Image 39
Intel 05-2065-002 manual Event Handling, Event Mechanism