Forums

« Back to SOAP API

Setting presence status for all users

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi all,
 
The SOAP interface to presence server seems only to be able to set the presence status for a single user. Is there another set of api's that can set the status for all users in the presence server?
 
What im trying to achieve is not setting the overall presence state of a user but the free/busy/off net status for a mobile device belonging to the user. The mobile status is given to me real time from the phone company.
 
Thanks,
 
Kind regards
 
René Bechmann
Farlon
 

I am from developer support services, even i am not finding any API's for this documented. I am enquiring with developers on availablity on this or possible workaround. Will post the findings soon.

The APIs are designed to allow an individual user to set his / her presence.  There is no API for setting the presence for multiple users in a single invocation.  
 
When using the Presence Web Service, you would need to login as the application user, then create a session for each individual end user, and invoke the set presence api on that session to set the presence for that user.
 
Hope this clarifies

Giggesh, thanks for the thread reply emoticon
 
Could this be accomplished by quering some other part of the system?
 
What i'm think is if i could access some API to get all users and their devices i could match that with the cellphone want to update, log in with the matched user and then set presence. I'm not very familiar with the presence server other then the developer guides i have read, and i don't see any way of getting such a userlist there.
 
Do you know if this is something which would work, or if there is even a way of getting such user info ?
 

The Client Configuration Web Service (EPASSoap) is designed to be used by enduser clients - so there is no way of getting admin level detail on users.
 
So here, you can get a list of users on the CUCM, via the AXL interface on the CUCM.  I believe, not all of these
are necessarily enabled for CUP though.  You can get device info associated with those users via those APIs, but I'm not sure that the mobile device info would be provisioned on the CUCM anyway.
 
"The Administrative XML (AXL) interface enables Provisioning Applications to remotely access configuration data stored in the Cisco Unified Communication Manager database using an eXtensible Markup Language (XML) Simple Object Access Protocol (SOAP). Developers can use AXL and the provided WSDL to Create, Read, Update, and Delete objects such as gateways, users, devices, route-patterns and much more." More informantion on this is at http://developer.cisco.com/web/axl/docs

As you say, you get updates associated with a particular phone number from the mobile operator, and you are asking for a way to lookup what the userid associated with that number is, so the presence for that user can be updated. So, If you have a corporate directory system, like Active Directory, and it contains the userids and the mobile numbers, perhaps an LDAP search could determine this?  This is assuming the CUCM users are synced down from the same Active Directory.

What im trying to achieve is not setting the overall presence state of a user but the free/busy/off net status for a mobile device belonging to the user. The mobile status is given to me real time from the phone company.


I need exactly this as well

Any more news? The 8.6(1) Cisco Unified Communications Manager XML Developer Guide.pdf states

Unified CM AXL implementation allows applications to modify the Unified CM system database.
Be aware that AXL is not intended as a real-time API but as a provisioning and configuration API.



What im trying to achieve is not setting the overall presence state of a user but the free/busy/off net status for a mobile device belonging to the user. The mobile status is given to me real time from the phone company.



I need exactly this as well

Any more news? The 8.6(1) Cisco Unified Communications Manager XML Developer Guide.pdf states


Unified CM AXL implementation allows applications to modify the Unified CM system database.
Be aware that AXL is not intended as a real-time API but as a provisioning and configuration API.


 
Peter: We solved this using AXL queries. If you still need this you can contact me directly for more information on how we implemented it. I can be reached on stig (at) touch.no

Collateral


No files available