Module: sip-router
Branch: master
Commit: e804a70e47f938338e6d93930c297ff958f16e22
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e804a70…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Thu Oct 25 21:36:28 2012 +0100
modules_k/xcap_server: Tidied up example
---
modules_k/xcap_server/README | 18 ++++++++++--------
modules_k/xcap_server/doc/xcap_server_admin.xml | 14 ++++++++++----
2 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/modules_k/xcap_server/README b/modules_k/xcap_server/README
index 662d3e5..8b2bc57 100644
--- a/modules_k/xcap_server/README
+++ b/modules_k/xcap_server/README
@@ -369,15 +369,16 @@ event_route[xhttp:request] {
pres_update_watchers("$var(uri)", "presence");
pres_refresh_watchers("$var(uri)", "presence",
1);
}
- else if($xcapuri(u=>auid)=~"rls-services" ||
$xcapuri(u=>auid)=~
-"resource-lists")
+ else if($xcapuri(u=>auid)=~"rls-services"
+ || $xcapuri(u=>auid)=~"resource-lists")
{
rls_update_subs("$var(uri)", "presence");
}
else if($xcapuri(u=>auid)=~"pidf-manipulation")
{
- pres_refresh_watchers("$var(uri)", "presence", 2,
"$xcapuri(
-u=>uri_adoc)", "$xcapuri(u=>file)");
+ pres_refresh_watchers("$var(uri)", "presence",
2,
+ "$xcapuri(u=>uri_adoc)",
+ "$xcapuri(u=>file)");
}
exit;
break;
@@ -392,15 +393,16 @@ u=>uri_adoc)", "$xcapuri(u=>file)");
pres_update_watchers("$var(uri)", "presence");
pres_refresh_watchers("$var(uri)", "presence",
1);
}
- else if($xcapuri(u=>auid)=~"rls-services" ||
$xcapuri(u=>auid)=~
-"resource-lists")
+ else if($xcapuri(u=>auid)=~"rls-services"
+ || $xcapuri(u=>auid)=~"resource-lists")
{
rls_update_subs("$var(uri)", "presence");
}
else if($xcapuri(u=>auid)=~"pidf-manipulation")
{
- pres_refresh_watchers("$var(uri)", "presence", 2,
"$xcapuri(
-u=>uri_adoc)", "$xcapuri(u=>file)");
+ pres_refresh_watchers("$var(uri)", "presence",
2,
+ "$xcapuri(u=>uri_adoc)",
+ "$xcapuri(u=>file)");
}
exit;
break;
diff --git a/modules_k/xcap_server/doc/xcap_server_admin.xml
b/modules_k/xcap_server/doc/xcap_server_admin.xml
index 3196972..4979334 100644
--- a/modules_k/xcap_server/doc/xcap_server_admin.xml
+++ b/modules_k/xcap_server/doc/xcap_server_admin.xml
@@ -420,13 +420,16 @@ event_route[xhttp:request] {
pres_update_watchers("$var(uri)", "presence");
pres_refresh_watchers("$var(uri)", "presence",
1);
}
- else if($xcapuri(u=>auid)=~"rls-services" ||
$xcapuri(u=>auid)=~"resource-lists")
+ else if($xcapuri(u=>auid)=~"rls-services"
+ || $xcapuri(u=>auid)=~"resource-lists")
{
rls_update_subs("$var(uri)", "presence");
}
else if($xcapuri(u=>auid)=~"pidf-manipulation")
{
- pres_refresh_watchers("$var(uri)", "presence", 2,
"$xcapuri(u=>uri_adoc)", "$xcapuri(u=>file)");
+ pres_refresh_watchers("$var(uri)", "presence",
2,
+ "$xcapuri(u=>uri_adoc)",
+ "$xcapuri(u=>file)");
}
exit;
break;
@@ -441,13 +444,16 @@ event_route[xhttp:request] {
pres_update_watchers("$var(uri)", "presence");
pres_refresh_watchers("$var(uri)", "presence",
1);
}
- else if($xcapuri(u=>auid)=~"rls-services" ||
$xcapuri(u=>auid)=~"resource-lists")
+ else if($xcapuri(u=>auid)=~"rls-services"
+ || $xcapuri(u=>auid)=~"resource-lists")
{
rls_update_subs("$var(uri)", "presence");
}
else if($xcapuri(u=>auid)=~"pidf-manipulation")
{
- pres_refresh_watchers("$var(uri)", "presence", 2,
"$xcapuri(u=>uri_adoc)", "$xcapuri(u=>file)");
+ pres_refresh_watchers("$var(uri)", "presence",
2,
+ "$xcapuri(u=>uri_adoc)",
+ "$xcapuri(u=>file)");
}
exit;
break;