Intel 05-2065-002 Device CVoiceDevice Init, OnPlayComplete, Record, GetDigits, GetDigitCount

Page 36

Demo Details

Table 7. Voice Module Classes (Continued)

Category

 

Class Name

 

Interface

 

 

 

Device

CVoiceDevice

Init( )

 

Handles voice device operations, such as

Opens the voice device. If successful,

 

 

playing, recording, tone detection, and

 

creates voice state machine.

 

 

tone generation

 

 

 

 

Exit( )

 

Holds CVoiceStateMachine

 

Deletes the voice state machine from the

 

Note: The public functions in this class

 

 

voice device

 

 

should only be accessed by classes

 

 

 

Closes voice device

 

 

inside the Voice module.

 

 

 

 

 

 

 

ProcessEvent( )

 

 

 

Processes voice device events

 

 

 

 

 

 

 

Connect( )

 

 

 

Allows IP device to listen to its receiving

 

 

 

 

timeslot

 

 

 

 

 

 

 

Play( )

 

 

 

Plays a vox file

 

 

 

 

 

 

 

OnPlayComplete( )

 

 

 

Replays a vox file when it has finished

 

 

 

 

playing

 

 

 

 

 

 

 

Record( )

 

 

 

Records voice to a vox file

 

 

 

 

 

 

 

GetDigits( )

 

 

 

Retrieves DTMF digits

 

 

 

 

 

 

 

GetDigitCount( )

 

 

 

Returns the number of retrieved DTMF

 

 

 

 

digits

 

 

 

 

 

 

 

GetDigitString( )

 

 

 

Returns retrieved DTMF string

 

 

 

 

 

 

 

Connect( )

 

 

 

Allows the voice device to listen to its

 

 

 

 

receiving timeslot

 

 

 

 

 

 

 

Disconnect( )

 

 

 

Allows voice device to unlisten to its

 

 

 

 

receiving timeslot

 

 

 

 

 

 

 

GetStoppedReason( )

 

 

 

Tells why a played voice file stops

 

 

 

 

 

 

 

GetDeviceHandle( )

 

 

 

Returns voice device handle

 

 

 

 

 

 

 

GetXmitSlot( )

 

 

 

Returns voice device transmit timeslot

 

 

 

 

 

 

 

SetReceiveSlot( )

 

 

 

Sets voice device receiving timeslot

 

 

 

 

 

36

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

Image 36
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 How to Use This Publication About This PublicationPurpose Intended AudienceRelated Information About This PublicationDemo1 Description Demo Description System2 Requirements Hardware RequirementsSoftware Requirements System Requirements Editing Configuration Files Editing the IPMediaServer.cfg Configuration FilePreparing To Run the Demo File LocationSample Configuration File Compiling and Linking Preparing to Run the Demo Command Line Switches Running4 DemoStarting the Demo Demo OptionsUsing the Demo Keyboard CommandsUsing the Media Server Runtime Keyboard CommandsConfirm Message Saved StopRecMenu Demo Voice Menu Flowchart Stopping the Demo Running the Demo Demo5 Details Files Used by the DemoDemo Source Code Files 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 Board CIPTBoard Init GetNumOfDevicesOnBoardCIPMBoard Init Device CIPDevice Init ConnectDisconnect GetXmitSlotVoice Module Classes Module CVoiceModule InitBoard CVoiceBoard Init Device CVoiceDevice Init PlayOnPlayComplete RecordThreads Initialization Event Handling Event MechanismHandling Keyboard Input Events Handling SRL 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 Symbols IndexIP Media Server Global Call Demo Guide November