Intel 05-2065-002 manual Threads

Page 37

 

 

 

 

 

Demo Details

Table 7. Voice Module Classes (Continued)

 

 

 

 

 

 

 

 

 

Category

 

Class Name

 

Interface

 

 

 

 

 

State Machine

CVoiceStateMachine

Init( )

 

 

Handles voice events and maintains

Opens vox files

 

 

 

voice state machine(s)

Creates mailbox utility object that

 

 

Note: The public functions in this class

 

manages mailboxes

 

 

 

should only be accessed by the

 

 

 

 

 

Exit( )

 

 

 

classes inside the voice module.

 

 

 

Closes vox files

 

 

 

 

 

 

 

 

Deletes mailbox utility object that

 

 

 

 

 

manages mailboxes

 

 

 

 

 

 

 

 

 

ProcessEvent( )

 

 

 

 

Processes voice events

 

 

 

 

 

Misc

CMailBoxUtil

InitMailBoxes( )

 

 

Provides utility function to manage

Initializes mailboxes

 

 

 

mailboxes

 

 

 

 

 

CheckAndConvertDigits( )

 

 

Note: The public functions in this class

 

 

Checks if the extension number is in

 

 

 

should only be accessed by the

 

 

 

 

allowed range. If it is, converts it into an

 

 

 

classes inside the voice module

 

 

 

 

 

integer.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GetMailBox( )

 

 

 

 

Checks if the mailbox is ready to be used.

 

 

 

 

 

If it is, gets the mailbox.

 

 

 

 

 

 

 

 

 

CreateMailBoxFileName( )

 

 

 

 

Creates a filename for the mailbox

 

 

 

 

 

 

 

 

 

FreeMailBox( )

 

 

 

 

Frees the mailbox for future use

 

 

 

 

 

 

5.3Threads

The IP Media Server (Global Call) demo operates with two threads, as shown in Figure 4.

Figure 4. IP Media Server (Global Call) Demo Threads

Keyboard

Main Thread

R4/GC

 

IP

 

 

 

 

 

 

 

 

 

 

SRL

Sub-Thread

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

37

Image 37
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 About This Publication How to Use This PublicationPurpose Intended AudienceAbout This Publication Related InformationDemo1 Description Demo Description Hardware Requirements System2 RequirementsSoftware Requirements System Requirements Editing the IPMediaServer.cfg Configuration File Editing Configuration FilesPreparing To Run the Demo File LocationSample Configuration File Compiling and Linking Preparing to Run the Demo Running4 Demo Command Line SwitchesStarting the Demo Demo OptionsKeyboard Commands Using the DemoUsing the Media Server Runtime Keyboard CommandsConfirm Message Saved StopRecMenu Demo Voice Menu Flowchart Stopping the Demo Running the Demo Files Used by the Demo Demo5 DetailsDemo Source Code Files Files Used by the IP Media Server Global Call DemoDemo 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 Connect Device CIPDevice InitDisconnect GetXmitSlotModule CVoiceModule Init Voice Module ClassesBoard CVoiceBoard Init Play Device CVoiceDevice InitOnPlayComplete RecordThreads Initialization Event Mechanism Event HandlingHandling SRL Events Handling Keyboard Input EventsHandling Application Exit 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 Index SymbolsIP Media Server Global Call Demo Guide November