/mcpdwParam1 The phone state that changed. This parameter uses the following PHONESTATE_constants: • PHONESTATE_OTHER -Phone-status items other than the following ones changed. The application should check the current phone status to determine which items changed. • PHONESTATE_CONNECTED -The connection between the phone device and TAPI was just made. This happens when TAPI is first invoked or when the wire that connects the phone to the computer is plugged in while TAPI is active. • PHONESTATE_DISCONNECTED -The connection between the phone device and TAPI just broke. This happens when the wire that connects the phone set to the computer is unplugged while TAPI is active. • PHONESTATE_OWNER -The number of owners for the phone device changed. • PHONESTATE_MONITORS -The number of monitors for the phone device changed. • PHONESTATE_DISPLAY -The display of the phone changed. • PHONESTATE_LAMP -A lamp of the phone changed. • PHONESTATE_RINGMODE -The ring mode of the phone changed. • PHONESTATE_HANDSETHOOKSWITCH -The hookswitch state changed for this speakerphone. • PHONESTATE_REINIT -Items changed in the configuration of phone devices. To become aware of these changes (as with the appearance of new phone devices), the application should reinitialize its use of TAPI. The hDevice parameter of the PHONE_STATE message stays NULL for this state change as it applies to any of the phones in the system. • PHONESTATE_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). Normally, a PHONE_CLOSE message on the device immediately follows a PHONE_STATE message with this value. Subsequent attempts to access the device prior to TAPI being reinitialized result in PHONEERR_NODEVICE being returned to the application. If a service provider sends a PHONE_STATE message that contains this value to TAPI, TAPI passes it along to applications that negotiated TAPI version 1.4 or later; applications that negotiated a previous API version do not receive any notification. • PHONESTATE_SUSPEND -Indicates the phone unregisters as it enters Energywise DeepSleep/PowersavePlus mode. dwParam2 Phone state-dependent information that details the status change. This parameter is not used if multiple flags are set in dwParam1 because multiple status items get changed. The application should invoke phoneGetStatus to obtain a complete set of information. Parameter dwparam2 can comprise one of PHONESTATE_LAMP, PHONESTATE_DISPLAY, PHONESTATE_HANDSETHOOKSWITCH, or PHONESTATE_RINGMODE. Because the Cisco Unified TSP cannot differentiate among hook switches for handsets, headsets, or speaker, the PHONESTATE_HANDSETHOOKSWITCH value always gets used for hook switches. If dwparam2 is PHONESTATE_LAMP, dwparam2 is the button ID that the PHONE_BUTTON message defines. Cisco Unified TAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 297 Basic TAPI Implementation PHONE_STATE