test personal directory login with AXL

Version 1
    This document was generated from CDN thread

    Created by: Christophe Baehr on 20-02-2009 08:59:29 AM
    Hi,

    Is someone known where 'Cisco personal directory' application put information about login of enduser?
     

    Subject: RE: test personal directory login with AXL
    Replied by: David Staudt on 20-02-2009 04:42:37 PM
    Can you provide some more background about what you are trying to accomplish, and more details on the type of information needed?

    Subject: RE: test personal directory login with AXL
    Replied by: Christophe Baehr on 23-02-2009 10:15:47 AM
    Hi,
     
    Thanks for your response.
    I want to be able to logout a enduser who was logged on a phone for the personal directory standard Cisco application, throught a web page.
    I would like to make this with a AXL request but I don't know where the informations are in the DB when a enduser logged in for access to his personal Directory.
     
    Thanks.  

    Subject: RE: test personal directory login with AXL
    Replied by: Stephan Steiner on 24-02-2009 10:44:07 AM
    What exactly are you refering to? Extension mobility, ccmuser (https://callmanager-ip-address/ccmuser) or the personal directory (pressing the directories button on the phone then selecting personal directory (option 5 if I'm not mistaken)?
     
    For extension mobility we have the extension mobility API which both allows you to query who is logged into a particular phone, as well as get a list of phones a user is logged in.. it's also possible to log in / out users programmatically - without needing their pin if you create a user with extension mobility proxy rights.
     
    Then there's the ccmuser page which is so much more than just editing your personal directory (you can reconfigure your phone and stuff).. to gain access you need userid and password.
     
    Then there's the personal directory which runs on the phone and needs your pin to access.
     
    There's no way to tell if somebody is logged into the latter two - and no way to recover the credentials (pin or password) either. However ,there's a way to validate a user's pin or password by calling the AXL method doAuthenticateUser.. it takes a userid as parameter plus either pin or password and it tells you if the credentials are valid. Could that be what you're looking for?

    Subject: RE: test personal directory login with AXL
    Replied by: Christophe Baehr on 24-02-2009 04:16:49 PM
    Hi,
     
    Thank's a lot for your response.
    It's effectively for the personnal directory (pressing the directories button on the phone then selecting personal directory option 5 if I'm not mistaken) that I wan't to retrieve from DB Cisco if a user is logged in or not.
    I'm looking for the information since a long time but I can't see the table where the information is.
    However, if we logged in with a user ,restart phone and try to access to the personal directory the user is always logged in.
    So, I think that's the information is keep somewhere...

    Subject: RE: test personal directory login with AXL
    Replied by: David Staudt on 24-02-2009 06:59:39 PM
    If you are looking to get the Extension Mobility status of a phone, see the Extension Mobility SOAP API.  Very easy to use.
    http://developer.cisco.com/web/axl/docs
    If you are looking to get the the call status of a phone (idle, offhook, busy), there are a couple of options, all somewhat harder:
    - You can use CTI (TAPI or JTAPI) to open/observe the devices and receive call progress events.
    http://developer.cisco.com/web/jtapi/docs
    - If you have a Cisco Unified Presence server, you can use the SOAP or REST APIs (or SIP protocol) to get (user-based) presence info.
    http://developer.cisco.com/web/cup/docs
    - You can use SIP SUB/NOTIFY via SIP trunk protocol connection to UCM to get (device-based) presence info.
    http://developer.cisco.com/web/sip/docs

    Subject: RE: test personal directory login with AXL
    Replied by: Stephan Steiner on 25-02-2009 10:30:50 AM
    It could be that they keep a long running session.
    If you still have a CCM4, I'd have a look at the personal directory there.. chances are good nothing major has changed (other than the data being in the sql database) for CCM5 and above.

    Subject: RE: test personal directory login with AXL
    Replied by: Christophe Baehr on 02-03-2009 01:03:07 PM
    Thanks for your response,
    I work on a CCM 6.
    So, do you know if is it possible to make a logout throught a Java application?
     
    Thanks in advance.