5.1.1.8 PHONEHOOKSWITCHMODE

The PHONEHOOKSWITCHMODE bit flag constants describe the mic and speaker components of a hookswitch device.

PHONEHOOKSWITCHMODE_ONHOOK

0x00000001

PHONEHOOKSWITCHMODE_MIC

0x00000002

PHONEHOOKSWITCHMODE_SPEAKER

0x00000004

PHONEHOOKSWITCHMODE_MICSPEAKER

0x00000008

PHONEHOOKSWITCHMODE_UNKNOWN

0x00000010


Values

The PHONEHOOKSWITCHMODE constants have the following values:

PhoneHookSwitchMode_onHook
The device's mic and speaker are both onhook.

PhoneHookSwitchMode_mic
The devicer's mic is active, the speaker is mute.

PhoneHookSwitchMode_speaker
The device's speaker is active, the mic is mute.

PhoneHookSwitchMode_micSpeaker
The device's mic and speaker are both active.

PhoneHookSwitchMode_unknown
The device's hookswitch mode is currenly unknown.

Extensibility

The high order 16 bits can be assigned for device specific extensions. The low order 16 bits are reserved.

Comments

These constants are used to provide individual level of control over the mic and speaker components of a phone device.

See Also

Functions: phoneSetHookSwitch, phoneGetHookSwitch, phoneGetDevCaps, phoneGetStatus
Data structures: PHONECAPS, PHONESTATUS