Hookswitch Types and States
ThehookTypeparameter of theTELGetHookswandTELSetHookswfunctions and themtypeparameter of thetelTermHookMsgmessage provide information about the hookswitch type. These parameters can contain one of the following constants:
enum { telHandset = 1, telSpeakerphone = 2 };Constant descriptions
The
telHandset- The terminal device is the handset.
telSpeakerphone- The terminal device is the speakerphone.
- Note
- Hookswitch type values in the range 3 through 255 are reserved for use by the Telephone Manager. Hookswitch type values in the range 256 through 32768 are available for use by telephone tools.
![]()
offHookparameter of theTELGetHookswandTELSetHookswfunctions and thevalueparameter of thetelTermHookMsgmessage indicate whether the hookswitch state is on or off:
enum { telDeviceOffHook = 1, telDeviceOnHook = 0 };Constant descriptions
telDeviceOffHook- The terminal device is off hook.
telDeviceOnHook- The terminal device is on hook.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help