I am trying to use the REST API to set a user's overall presence, and the rich custom status ("note") to a specific value.
When setting an 'available' status there are no problems, but I have issues when trying to set a 'busy', 'away' or 'dnd' status, where the basic presence usually reverts to Available and ignores the note/custom status;
For example, using a pidf containing this (below) returns http 200 OK but only changes the presence to Available with no note.
PUT /presence-service/users/myusername/presence/rich HTTP/1.1
Host: <cup-ip>:8083
Presence-Session-Key: 54f5ac5f-20d-4b27200a-6334-2
Presence-Expiry: 3600
Presence-Override: false
<?xml version="1.0" encoding="UTF-8" ?>
<presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:rp="urn:ietf:params:xml:ns:pidf:rpid" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:ce="urn:cisco:params:xml:ns:pidf:rpid" xmlns:cisco="urn:cisco:params:xml:ns:pidf:source" xmlns:so="urn:cisco:params:xml:ns:pidf:source" xmlns:sc="urn:ietf:params:xml:ns:pidf:servcaps" entity="sip:myusername@mydomain.local">
<ce:person id="myusername">
<activities>
<away/>
</activities>
<class>manual</class>
<note>set programmatically</note>
</ce:person>
<tuple id="cisco-pws">
<contact priority="0.5">sip:myusername@mydomain.local</contact>
<so:source>Presence Web Service</so:source>
<sc:servcaps>
<sc:audio>false</sc:audio>
<sc:video>false</sc:video>
<sc:text>false</sc:text>
</sc:servcaps>
<status><basic>open</basic></status>
</tuple>
</presence>
Answer: You need to also set the priority for your presence as to override what Cisco Windows Jabber believes is your presence.
Comments
0 comments
Please sign in to leave a comment.