Ticket #32 (closed Defect: Fixed)
Presence rules problem
| Reported by: | goyo.villalba | Owned by: | mircea |
|---|---|---|---|
| Priority: | Major | Milestone: | OpenXCAP 1.0.0 |
| Component: | XCAP protocol | Version: | Release 1.0 |
| Severity: | Non-critical | Keywords: | XML document presence rules |
| Cc: |
Description
Hi.
I am using openSer 1.3 with openXcap for presence rules. Imaging there are two users without previous presence rules and active winfo subscriptions. If one of those users subscribes to other's presence, the first receives the winfo NOTIFY, in that moment the first user sends a PUT to openXCAP to 'allow' the other user. The response of openXCAP is '201 created', but the winfo subscription does not change from pending to active (I checked it in openSer database).
This is the PUT's path: PUT /pres-rules/users/sip:XXX@domain/pres-rules.xml
This is the PUT's body:
<?xml version="1.0" encoding="UTF-8"?> <cr:ruleset xmlns:cr="urn:ietf:params:xml:ns:common-policy" xmlns="urn:ietf:params:xml:ns:pres-rules" xmlns:pr="urn:ietf:params:xml:ns:pres-rules"> <cr:rule id="whitelist"> <cr:conditions> <cr:identity> <cr:one id="sip:YYY@domain"/> </cr:identity> </cr:conditions> <cr:actions> <pr:sub-handling>allow</pr:sub-handling> </cr:actions> </cr:rule> <cr:rule id="politeblocklist"> <cr:conditions/> <cr:actions> <pr:sub-handling>polite-block</pr:sub-handling> </cr:actions> </cr:rule> <cr:rule id="blacklist"> <cr:conditions/> <cr:actions> <pr:sub-handling>block</pr:sub-handling> </cr:actions> </cr:rule> </cr:ruleset>
I have tried this same XML with other XCAP servers and it works, can someone tell me if this XML should work? Any idea of what could be the problem?
Thanks. Goyo.

Hi,
OpenXCAP only manages the authorization policies, it doesn't implement the SUBSCRIBE/NOTIFY logic according to these documents. This is done by the presence module in OpenSER. Make sure that you've selected OpenSER backend in OpenXCAP's configuration, and that the reload command is properly sent to OpenSER through XMLRPC.
Could you tell what are the other XCAP server that work ? Actually what are the other presence servers that work. Thanks.