[sr-dev] git:master:78fa8b87: presence : document pres_has_subscribers

Luis Azedo luis at 2600hz.com
Thu Mar 9 12:39:13 CET 2017


Module: kamailio
Branch: master
Commit: 78fa8b870e4ed51bd9e82ee54f4a207801f910c3
URL: https://github.com/kamailio/kamailio/commit/78fa8b870e4ed51bd9e82ee54f4a207801f910c3

Author: Luis Azedo <luis at 2600hz.com>
Committer: Luis Azedo <luis at 2600hz.com>
Date: 2017-03-04T12:44:26Z

presence : document pres_has_subscribers

---

Modified: src/modules/presence/doc/presence_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/78fa8b870e4ed51bd9e82ee54f4a207801f910c3.diff
Patch: https://github.com/kamailio/kamailio/commit/78fa8b870e4ed51bd9e82ee54f4a207801f910c3.patch

---

diff --git a/src/modules/presence/doc/presence_admin.xml b/src/modules/presence/doc/presence_admin.xml
index 6abcc72..1640fe7 100644
--- a/src/modules/presence/doc/presence_admin.xml
+++ b/src/modules/presence/doc/presence_admin.xml
@@ -1024,6 +1024,27 @@ if (method=="MESSAGE") {
 		</example>
 	</section>
 
+<section id="presence.f.pres_has_subscribers">
+    <title>
+        <function moreinfo="none">pres_has_subscribers(presentity_uri, event)</function>
+    </title>
+    <para>
+        Allows to check if presentity has any subscribers of event.
+    </para>
+    <para>
+        This function can be used from ANY_ROUTE.
+    </para>
+    <example>
+        <title><function>pres_has_subscribers</function> usage</title>
+        <programlisting format="linespecific">
+            ...
+            if(pres_has_subscribers($var(uri), "message-summary"))
+            do something...;
+            ...
+        </programlisting>
+    </example>
+</section>
+
 	<section id="presence.f.pres_refresh_watchers">
 		<title>
 		<function moreinfo="none">pres_refresh_watchers(uri, event, type[, file_uri, filename])</function>




More information about the sr-dev mailing list