Intel IP Media Server User Manual

Page of 56
IP Media Server for HMP Demo Guide — July 2005
31
Demo Details
5.2.3
Interfaces
The modular architecture implements a unified interface that allows replacement of modules by 
including new header files and adjusting routing statements. 
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.4
Classes
This section describes the classes contained in the demo and within each module. Each module 
contains three classes: board, device, and state machine.
Table 6. Application Classes
Class Name
Interface
CConfig
• Responsible for parsing configuration file and 
populating configuration variables in the program.
ParseConfigFile( )
• Parses configuration file
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
FaxParms( )
• Returns configured fax parameters