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

Page 37
Image 37
Intel 05-2065-002 manual Threads