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 |