Is device exist

Version 1
    This document was generated from CDN thread

    Created by: Vladimir Banker on 02-09-2009 07:55:42 PM
    Is exist way to know if extension of agent is logged (using EM)?
    I tried with QUERY_DEVICE_INFO_REQ but it always return for existing device and for not existing in CM device same results:

    Subject: RE: New Message from Vladimir Banker in Unified Contact Center Express CTI
    Replied by: David Lender on 03-09-2009 02:53:55 PM
    If the UCCX Agent is indeed logged in, you should get Agent State events
    which show the extension.  You can initiate an AGENT_STATE_REQ using
    just agentid and the AGENT_STATE_CONF event should show the extension.