When the handset is lifted the etPhone.OnHandsetHookSwitch event fires. The etPhone.Handset properties are updated to indicate the current state of the handset hook switch device. In this case the etPhone.Handset.MicrophoneAndSpeaker property would be set to True. The properties etPhone.Handset.Onhook, etPhone.Handset.MicrophoneOnly and etPhone.Handset.SpeakerOnly will have a value of False. When the handset is returned to its cradle the property etPhone.Handset.Onhook will have a value of True. The properties etPhone.Handset.MicrophoneAndSpeaker, etPhone.Handset.MicrophoneOnly and etPhone.Handset.SpeakerOnly will have a value of False.
Using TeleScope
2. Click the Handset tab.
3. Lift the receiver of the attached handset device. The etPhone.OnHandsetHookSwitch event will fire and the etPhone.MicrophoneAndSpeaker radio button will be selected.
Using TeleTools
2. Lift the receiver of the attached handset device. The etPhone.OnHandsetHookSwitch event will fire and the etPhone.MicrophoneAndSpeaker property will be set to True.
Note: When working with voice modems it is important to remember that handset hook switch detection will only work after a call is connected (see Check the current Call State). Many sophisticated telephony devices support this feature even when a call does not exist.