Intel 05-2065-002 manual Initialization

Page 38

Demo Details

The threads are created as follows:

1.The first (main) thread is created by the demo application to get the keyboard input.

2.The second thread is an SRL thread, created as a result of the demo application calling PDLsr_enblhdlr( ). All Global Call events are received through the SRL.

5.4Initialization

This section describes the demo initialization as shown in Figure 5.

A system is started in the following sequence:

1.The application creates CConfig( ) to parse the configuration file.

2.The application creates CEventRouter( ) to start the Event Router, which, in turn, starts the IP module and the Voice module. When a module is started, it initializes its boards, devices and state machines.

After all the modules are started, the EventRouter starts to build a static routing table that maps voice devices to IP devices. It is important that each IP device has a dedicated voice resource, so that when an IP channel is connected (an incoming call is answered) the user can get a voice prompt immediately.

If the initialization should fails, the application shuts down. The shutdown sequence is the reverse of the initialization sequence.

38

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

Image 38
Contents IP Media Server Global Call Demo Guide For Windows Operating SystemsIP Media Server Global Call Demo Guide November Contents Contents Figures Tables Revision History Document No Publication Date Description of RevisionsRevision History Purpose How to Use This PublicationAbout This Publication Intended AudienceRelated Information About This PublicationDemo1 Description Demo Description Software Requirements System2 RequirementsHardware Requirements System Requirements Preparing To Run the Demo Editing Configuration FilesEditing the IPMediaServer.cfg Configuration File File LocationSample Configuration File Compiling and Linking Preparing to Run the Demo Starting the Demo Command Line SwitchesRunning4 Demo Demo OptionsUsing the Media Server Using the DemoKeyboard Commands Runtime Keyboard CommandsConfirm Message Saved StopRecMenu Demo Voice Menu Flowchart Stopping the Demo Running the Demo Demo Source Code Files Demo5 DetailsFiles Used by the Demo Files Used by the IP Media Server Global Call DemoDemo Details PDL Files PDL Files Used by the IP Media Server Global Call DemoProgramming Model Module StructureEventRouter IP Media Server Global Call Demo ArchitectureInterfaces EventRouterClasses Application ClassesIP Module Classes CIPMBoard Init Board CIPTBoard InitGetNumOfDevicesOnBoard Disconnect Device CIPDevice InitConnect GetXmitSlotBoard CVoiceBoard Init Voice Module ClassesModule CVoiceModule Init OnPlayComplete Device CVoiceDevice InitPlay RecordThreads Initialization Event Handling Event MechanismHandling Application Exit Events Handling Keyboard Input EventsHandling SRL Events TSUsrEvent StructureDemo 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 Symbols IndexIP Media Server Global Call Demo Guide November