[OpenSIPS-Devel] [presence_xml - XCAP] Using a link to resource-list into a pres-rules condition
Anca Vamanu
anca at opensips.org
Tue Aug 4 10:33:07 CEST 2009
Hi Inaki,
No, presence_xml does not support included resouce-lists documents
neither in pres-rules nor in rls-services documents.
regards,
Anca
Iñaki Baz Castillo wrote:
> 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.
>
>
More information about the Devel
mailing list