Intel 05-2065-002 manual Application Classes

Page 31

Demo Details

A module is treated by the EventRouter as a block box. It has three types of APIs:

Initialization

Init( ) – for initializing a module

GetNumOfDevices( ) – returns the number of devices available to the application

GetDeviceHandle( ) – returns a device handle

GetDeviceXmitSlot( ) – returns a device transmit timeslot

SetDeviceReceiveSlot( ) – sets a device receive timeslot

Runtime

ProcessEvent( ) – processes event data

Termination

Exit( ) – exits a module

5.2.4Classes

This section describes the classes contained in the demo and within each module. Each module contains three classes: board, device, and state machine.

Table 5. Application Classes

 

Class Name

 

Interface

 

 

CConfig

ParseConfigFile( )

Responsible for parsing configuration file and

Parses configuration file

 

populating configuration variables in the program.

 

 

 

ChannelNumber( )

 

 

 

 

Gets the number of channels that are the

 

 

 

minimum of the number of voice lines and the

 

 

 

number of IP lines

 

 

 

 

 

IPParms( )

 

 

Returns configured IP parameters

 

 

 

 

 

VoiceParms( )

 

 

Returns configured voice parameters

 

 

CEventRouter

Init( )

Responsible for connecting all the modules. It does

Initializes the IP module, voice module, and fax

the following:

 

module

Maintains routing tables

Builds event routing tables

Retrieves event data from the SRL and routes

 

 

Exit( )

 

them to modules

 

Terminates IP module, voice module, and fax

Gets event process results from the modules and

 

module

 

routes them to other modules if the destination is

 

 

 

 

 

ProcessEvent( )

 

not NONE

 

 

Retrieves event data from Global Call and routes

 

 

 

them to a module for processing

 

 

Routes processing result to other module(s) for

 

 

 

further processing.

 

 

 

 

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

31

Image 31
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 Hardware Requirements System2 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 GetNumOfDevicesOnBoard Board CIPTBoard InitCIPMBoard Init GetXmitSlot Device CIPDevice InitConnect DisconnectModule CVoiceModule Init Voice Module ClassesBoard 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