PHONE_HOOK_SWITCH_STATE enumeration (tapi3if.h)

The PHONE_HOOK_SWITCH_STATE enum provides indicators of the phone hookswitch status.

Syntax

typedef enum PHONE_HOOK_SWITCH_STATE {
  PHSS_ONHOOK = 0x1,
  PHSS_OFFHOOK_MIC_ONLY = 0x2,
  PHSS_OFFHOOK_SPEAKER_ONLY = 0x4,
  PHSS_OFFHOOK = 0x8
} ;

Constants

 
PHSS_ONHOOK
Value: 0x1
Indicates that the phone is onhook.
PHSS_OFFHOOK_MIC_ONLY
Value: 0x2
Indicates that only the phone's microphone is offhook.
PHSS_OFFHOOK_SPEAKER_ONLY
Value: 0x4
Indicates that only the phone's speaker is offhook.
PHSS_OFFHOOK
Value: 0x8
Indicates that the phone is offhook.

Requirements

Requirement Value
Header tapi3if.h

See also

ITPhone::get_HookSwitchState

ITPhone::put_HookSwitchState

ITPhoneEvent::get_HookSwitchState