TAPIEx ActiveX Control v3.6 |
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)
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.