TAPIEx.NET Component Documentation

Enum PHONESTATE

The PS_ bit-flag constants describe various status items for a phone device.

PS_CAPSCHANGE
Indicates that, due to configuration changes made by the user or other circumstances, one or more of the members in the PHONECAPS structure have changed. The application should use phoneGetDevCaps to read the updated structure. If a service provider sends a PHONE_STATE message containing this value to TAPI, TAPI will pass it along to applications that have negotiated TAPI version 1.4 or later; applications negotiating a previous API version will receive PHONE_STATE messages specifying PS_REINIT, requiring them to shut down and reinitialize their connection to TAPI to obtain the updated information.
PS_CONNECTED
The connection between the phone device and TAPI was just made. This happens when TAPI is first invoked or when the wire connecting the phone to the PC is plugged in with TAPI active.
PS_DEVSPECIFIC
The phone's device-specific information has changed.
PS_DISCONNECTED
The connection between the phone device and TAPI was just broken. This happens when the wire connecting the phone set to the PC is unplugged while TAPI is active.
PS_DISPLAY
The display of the phone has changed.
PS_HANDSETGAIN
The handset's microphone gain setting has changed.
PS_HANDSETHOOKSWITCH
The handset hookswitch state has changed.
PS_HANDSETVOLUME
The handset's speaker volume setting has changed.
PS_HEADSETHOOKSWITCH
The headset's hookswitch state has changed.
PS_HEADSETGAIN
The headset's microphone gain setting has changed.
PS_HEADSETVOLUME
The headset's speaker volume setting has changed.
PS_LAMP
A lamp of the phone has changed.
PS_MONITORS
The number of monitors for the phone device.
PS_OTHER
Phone-status items other than those listed below have changed. The application should check the current phone status to determine which items have changed.
PS_OWNER
The number of owners for the phone device.
PS_REINIT
Items have changed in the configuration of phone devices. To become aware of these changes (as for the appearance of new phone devices), the application should reinitialize its use of TAPI.
PS_REMOVED
Indicates that the device is being removed from the system by the service provider (most likely through user action, through a control panel or similar utility). A PHONE_STATE message with this value will normally be immediately followed by a PHONE_CLOSE message on the device. Subsequent attempts to access the device prior to TAPI being reinitialized will result in PHONEERR_NODEVICE being returned to the application. If a service provider sends a PHONE_STATE message containing this value to TAPI, TAPI will pass it along to applications that have negotiated TAPI version 1.4 or later; applications negotiating a previous API version will not receive any notification.
PS_RESUME
The application's use of the phone device is resumed after having been suspended for some time.
PS_RINGMODE
The ring mode of the phone has changed.
PS_RINGVOLUME
The ring volume of the phone has changed.
PS_SPEAKERHOOKSWITCH
The speakerphone's hookswitch state has changed.
PS_SPEAKERGAIN
The speakerphone's microphone gain setting state has changed.
PS_SPEAKERVOLUME
The speakerphone's speaker volume setting has changed.
PS_SUSPEND
The application's use of the phone is temporarily suspended.

See Also

None.