5.1.1.7 PHONEHOOKSWITCHDEV

The PHONEHOOKSWITCHDEV bit flag constants describe various audio I/O devices each with its own hookswitch controllable from the PC.

PHONEHOOKSWITCHDEV_HANDSET

0x00000001

PHONEHOOKSWITCHDEV_SPEAKER

0x00000002

PHONEHOOKSWITCHDEV_HEADSET

0x00000004


Values

The PHONEHOOKSWITCHDEV constants have the following values:

PhoneHookSwitchDev_handset
This is the ubiquitous, hand held ear and mouth piece.

PhoneHookSwitchDev_speaker
This is a built-in loudspeaker and microphone. This could also be an externally connected adjunct speaker to the telephone set.

PhoneHookSwitchDev_headset
This is a headset connected to the phone set.

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 in the PHONECAPS data structure to indicate the hookswitch device capabilities of a phone device. The PHONESTATUS structure reports the state of the phone's hookswitch devices. The function phoneSetHookSwitch and phoneGetHookSwitch use it as a parameter to select the phone's I/O device.

See Also

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