|
|
|
|||||||||||||||||||||||||||||||||||||||||||
Requirements |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
Using This Sample Program |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
Download this Sample Program |
|||||||||||||||||||||||||||||||||||||||||||
For use with TeleTools v3.7
|
|||||||||||||||||||||||||||||||||||||||||||
How this Sample Program Works |
|||||||||||||||||||||||||||||||||||||||||||
|
When the program is loaded the etLine and etPlay controls are enabled and their TeleScopes are displayed. The remaining controls are disabled. When an inbound call is detected by etLine the etLine1.OnOffering event handler routine is executed which enables the Answer button. When a call is answered the etLine1.OnConnected event handler routine to be executed. This routine disables the Answer button and enabled the Play button, MonitorDigits checkbox and hangup button. When the Play button is clicked it will be disabled, the etPlay1.Source.FileName property is set and then the etPlay1.Device.Active property is set to true to begin playing the wave file. Notice that etPlay1.Source.FileName is set to a list of files. etPlay combines these files and plays them as one. When a wave file is done playing the etPlay1_OnDone event handler routine is executed. This routine enables the Play button so the wave file may be played again. When the MonitorDigits checkbox is checked the etLine control will detect DTMF tones and display them in the Digits editbox. The etLine1_OnDigitReceived event handler routine is executed each time a DTMF tone is detected. If a "#" is detected then Monitoring digits will be deactivated. When the Hang up button is clicked etPlay will stop playing wave files and the call will be hung up. When the remote party hangs up the phone the etLine1_OnDisconnected will execute. This routine calls the Hang up buttons click event handler routine; CommandHangup_Click When a call not longer exists the etLine1_OnIdle event handler routine is executed. This routine disables all of the buttons in preparation for the next inbound call.
|
|||||||||||||||||||||||||||||||||||||||||||
Release Notes |
|||||||||||||||||||||||||||||||||||||||||||
April 3, 2003Published |
|||||||||||||||||||||||||||||||||||||||||||
|
|
||||
|
||||