|
|
Click here to see more product and technical information about the Way2Call Hi-Phone. Development
Environment Technical Information |
|||||||||||||||||||||||||||||||||||||||||||||||
Requirements |
|||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||
Using This Sample Program |
|||||||||||||||||||||||||||||||||||||||||||||||
Note: The Headset check box may be checked at any time before or during the call. |
|||||||||||||||||||||||||||||||||||||||||||||||
Download this Sample Program |
|||||||||||||||||||||||||||||||||||||||||||||||
For use with TeleTools v3.7
|
|||||||||||||||||||||||||||||||||||||||||||||||
How this Sample Program Works |
|||||||||||||||||||||||||||||||||||||||||||||||
|
When the program is loaded the etLine, etPhone 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 disabled, the etPlay1.Source.FileName property is set then et 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. When the Headset check box is checked the property
etPhone1.Headset.MicrophoneAndSpeaker is set to True. When the Headset check box is unchecked the property
etPhone1.Headset.OnHook is set to True.
|
|||||||||||||||||||||||||||||||||||||||||||||||
Release Notes |
|||||||||||||||||||||||||||||||||||||||||||||||
April 8, 2003Published |
|
|
||||
|
||||