/mcpDevice State Server The Device State Server feature provides accumulative state of all the lines on the device. Applications are notified about the device status through the PHONE_DEVSPECIFIC and LINE_DEVSPECIFIC events. An application for enabling the Device State Server support needs to set the DEVSPECIFIC_DEVICE_STATE and DEVSPECIFIC_DEVICE_STATE_STATUS_ message flags using the lineDevSpecific SLDST_SET_STATUS_MESSAGES request and the PhoneDevSpecific CPDST_SET_DEVICE_STATUS_MESSAGES request respectively. When Cisco TSP receives the DEVICE_STATE events from CTI, it notifies the application about the accumulative state of all the lines on the device using the PHONE_DEVSPECIFIC and LINE_DEVSPECIFIC events. The device status in the LINE_DEVSPECIFIC and PHONE_DEVSPECIFIC events can be one of the following. enum lineDeviceState{ lineDeviceState_UNKNOWN = 0, lineDeviceState_ACTIVE = 1, lineDeviceState_ALERTING = 2, lineDeviceState_HELD = 3, lineDeviceState_WHISPER = 4, lineDeviceState_IDLE = 5 }; enum PhoneDeviceState{ PhoneDeviceState_UNKNOWN = 0, PhoneDeviceState_ACTIVE = 1, PhoneDeviceState_ALERTING = 2, PhoneDeviceState_HELD = 3, PhoneDeviceState_WHISPER = 4, PhoneDeviceState_IDLE = 5 }; This feature provides the accumulative state of all the lines on the device or the phone to the application. Events are provided based on the following criteria: • IDLE If all the lines on the device are IDLE, the device state is considered IDLE and the corresponding event is delivered to the qualified applications. • ACTIVE If any of the lines on the device have an ACTIVE (call states are LINECALLSTATE_DIALTONE, LINECALLSTATE_DIALING, LINECALLSTATE_PROCEEDING, LINECALLSTATE_RINGBACK, and LINECALLSTATE_DISCONNECTED) call, the device state is considered ACTIVE and the corresponding event is delivered to the qualified applications. • ALERTING If there is no ACTIVE call on any of the lines of the device and at least one of the lines has an ALERTING (call states are LINECALLSTATE_OFFERING and LINECALLSTATE_ACCEPTED) call, the device state is considered ALERTING and the corresponding event is delivered to the qualified applications. • HELD Cisco Unified TAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 52 Features Supported by TSP Device State Server