TAPIEx ActiveX Control v3.6

OnPhoneStateChanged

The OnPhoneStateChanged event is fired when the status of a phone device changed.

Event OnPhoneStateChanged(m_Phone As ITAPIPhone, 
PHONESTATE As PHONESTATE, PhoneStateDetails As Long)

Parameters

m_Phone
Reference to ITAPIPhone.
PHONESTATE
The phone state that has changed
StateDetails
Phone state-dependent information detailing the status change.

If PHONESTATE is PS_OWNER, StateDetails contains the new number of owners.

If PHONESTATE is PS_MONITORS, StateDetails contains the new number of monitors.

If PHONESTATE is PS_LAMP, StateDetails contains the button/lamp identifier of the lamp that has changed.

If PHONESTATE is PS_RINGMODE, StateDetails contains the new ring mode.

If PHONESTATE is PS_HANDSET, SPEAKER or HEADSET, StateDetails contains the new hookswitch mode of that hookswitch device.

Remarks

None.

See Also

None.