[OpenSIPS-Devel] [presence_xml - XCAP] Using a link to resource-list into a pres-rules condition

Iñaki Baz Castillo ibc at aliax.net
Mon Aug 3 17:31:00 CEST 2009


Hi, I've realized that some specifications of pres-rules define a more
stricted XML schema for the pres-rules document.
For example, OMA defines a pres-rules document in XDM specifications
which contains:

 <cr:rule id="wp_prs_grantedcontacts">
   <cr:conditions>
     <ocp:external-list>
       <ocp:entry
anc="https://xcap.domain.org/mobicents/resource-lists/users/sip:alice@domain.org/index/~~/resource-lists/list%5B@name=%22oma_grantedcontacts%22%5D"/>
     </ocp:external-list>
   </cr:conditions>
   <cr:actions>
     <sub-handling>allow</sub-handling>


As you can see, the condition is a reference to a resource-list (let's
assume that it's always in the same XCAP server).

Does presence_xml allow it? would it read the resource-list when
inspecting the pres-rules document and allow any user contained in
that resource-list?

Of course, in "integrated_mode" presence_xml would not perform a XCAP
query. Instead, it should parse the URL and map it to the appropriate
document (a node with "name=oma_grantedcontacts" into a resource-list
document called "list").

Does presence_xml implement it?


Also, in OpenXCAP side: If the user updates its resource-list
document, how would OpenXCAP realize that it must notify a change in
the pres-rules?


Thanks.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list