[OpenSIPS-Devel] Interaction with Mobicents XDMS
Andaleeb Roomy
andaleebcse at gmail.com
Fri Jul 31 10:34:26 CEST 2009
> Some example?
GET /mobicents/org.openmobilealliance.pres-rules/users/sip:andaleeb1 at 192.168.0.133/pres-rules
HTTP/1.1
Host: 192.168.0.130:8080
Accept: */*
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build:
SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0
ETag: e46fe7c0be72de3551608c84e5ea36b0
Content-Type: application/auth-policy+xml;charset=ISO-8859-1
Content-Length: 2683
Date: Mon, 27 Jul 2009 04:35:42 GMT
<?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:ocp="urn:oma:xml:xdm:common-policy"
xmlns:op="urn:oma:xml:prs:pres-rules">
<cr:rule id="wp_prs_allow_own">
<cr:conditions>
<cr:identity>
<cr:one id="sip:andaleeb1 at 192.168.0.133"/>
</cr:identity>
</cr:conditions>
<cr:actions>
<sub-handling>allow</sub-handling>
</cr:actions>
<cr:transformations>
<provide-services>
<all-services/>
</provide-services>
<provide-persons>
<all-persons/>
</provide-persons>
<provide-all-attributes/>
<provide-devices>
<all-devices/>
</provide-devices>
</cr:transformations>
</cr:rule>
<cr:rule id="rcs_allow_services_anonymous">
<cr:conditions>
<ocp:anonymous-request/>
</cr:conditions>
<cr:actions>
<sub-handling>allow</sub-handling>
</cr:actions>
<cr:transformations>
<provide-services>
<all-services/>
</provide-services>
<provide-persons>
<all-persons/>
</provide-persons>
<provide-all-attributes/>
<provide-devices>
<all-devices/>
</provide-devices>
</cr:transformations>
</cr:rule>
<cr:rule id="wp_prs_unlisted">
<cr:conditions>
<ocp:other-identity/>
</cr:conditions>
<cr:actions>
<sub-handling>confirm</sub-handling>
</cr:actions>
</cr:rule>
<cr:rule id="wp_prs_grantedcontacts">
<cr:conditions>
<ocp:external-list>
<ocp:entry
anc="http://192.168.0.130:8080/mobicents/resource-lists/users/sip:andaleeb1@192.168.0.133/index/~~/resource-lists/list%5B@name=%22oma_grantedcontacts%22%5D"/>
</ocp:external-list>
</cr:conditions>
<cr:actions>
<sub-handling>allow</sub-handling>
</cr:actions>
<cr:transformations>
<provide-services>
<all-services/>
</provide-services>
<provide-persons>
<all-persons/>
</provide-persons>
<provide-all-attributes/>
<provide-devices>
<all-devices/>
</provide-devices>
</cr:transformations>
</cr:rule>
<cr:rule id="wp_prs_blockedcontacts">
<cr:conditions>
<ocp:external-list>
<ocp:entry
anc="http://192.168.0.130:8080/mobicents/resource-lists/users/sip:andaleeb1@192.168.0.133/index/~~/resource-lists/list%5B@name=%22oma_blockedcontacts%22%5D"/>
</ocp:external-list>
</cr:conditions>
<cr:actions>
<sub-handling>block</sub-handling>
</cr:actions>
</cr:rule>
</cr:ruleset>
More information about the Devel
mailing list