Intel 05-2065-002 manual Event Handling, Event Mechanism

Page 39

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

Image 39
Contents For Windows Operating Systems IP Media Server Global Call Demo GuideIP Media Server Global Call Demo Guide November Contents Contents Figures Tables Document No Publication Date Description of Revisions Revision HistoryRevision History Intended Audience How to Use This PublicationAbout This Publication PurposeAbout This Publication Related InformationDemo1 Description Demo Description System2 Requirements Hardware RequirementsSoftware Requirements System Requirements File Location Editing Configuration FilesEditing the IPMediaServer.cfg Configuration File Preparing To Run the DemoSample Configuration File Compiling and Linking Preparing to Run the Demo Demo Options Command Line SwitchesRunning4 Demo Starting the DemoRuntime Keyboard Commands Using the DemoKeyboard Commands Using the Media ServerConfirm Message Saved StopRecMenu Demo Voice Menu Flowchart Stopping the Demo Running the Demo Files Used by the IP Media Server Global Call Demo Demo5 DetailsFiles Used by the Demo Demo Source Code FilesDemo Details PDL Files Used by the IP Media Server Global Call Demo PDL FilesModule Structure Programming ModelIP Media Server Global Call Demo Architecture EventRouterEventRouter InterfacesApplication Classes ClassesIP Module Classes Board CIPTBoard Init GetNumOfDevicesOnBoardCIPMBoard Init GetXmitSlot Device CIPDevice InitConnect DisconnectVoice Module Classes Module CVoiceModule InitBoard CVoiceBoard Init Record Device CVoiceDevice InitPlay OnPlayCompleteThreads Initialization Event Mechanism Event HandlingTSUsrEvent Structure Handling Keyboard Input EventsHandling SRL Events Handling Application Exit EventsDemo Details Demo Details Glossary IP Media Server Global Call Demo Guide November IP Media Server Global Call Demo Guide November IP Media Server Global Call Demo Guide November Index SymbolsIP Media Server Global Call Demo Guide November