[sr-dev] git:master:07fee9b2: presence: documente new parameters xavp_cfg and retrieve_order

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 26 21:20:10 CET 2015


Module: kamailio
Branch: master
Commit: 07fee9b2a24236aca9fd134a1e0c3748e643b8a8
URL: https://github.com/kamailio/kamailio/commit/07fee9b2a24236aca9fd134a1e0c3748e643b8a8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-03-26T21:19:49+01:00

presence: documente new parameters xavp_cfg and retrieve_order

---

Modified: modules/presence/doc/presence_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/07fee9b2a24236aca9fd134a1e0c3748e643b8a8.diff
Patch: https://github.com/kamailio/kamailio/commit/07fee9b2a24236aca9fd134a1e0c3748e643b8a8.patch

---

diff --git a/modules/presence/doc/presence_admin.xml b/modules/presence/doc/presence_admin.xml
index f2d249f..f3f9ea4 100644
--- a/modules/presence/doc/presence_admin.xml
+++ b/modules/presence/doc/presence_admin.xml
@@ -698,6 +698,63 @@ modparam("presence", "subs_remove_match", 1)
 </programlisting>
 	    </example>
 	</section>
+	<section id="presence.p.xavp_cfg">
+    <title><varname>xavp_cfg</varname> (str)</title>
+    <para>
+		The name of the xavp to be used to specify attributes for internal
+		processing of presence module.
+    </para>
+    <para>
+		Inner attributes inside xavp can be:
+    </para>
+    <itemizedlist>
+        <listitem>
+			<para><emphasis>priority</emphasis> - integer value to set the
+			priority of the presence document (higher value, higher priority).
+			It can set the order of the aggregated presence documents sent by
+			NOTIFY (first the document with higher priority). If xavp_cfg
+			parameter is set but this attribute is not in the avp,
+			the priority of the presence document is based on timestamp,
+			so newer documents have higher priority.</para>
+        </listitem>
+     </itemizedlist>
+    <para>
+        Default value is <emphasis>empty</emphasis> (not set).
+    </para>
+    <example>
+        <title>Set <varname>xavp_cfg</varname> parameter</title>
+        <programlisting format="linespecific">
+...
+modparam("presence", "xavp_cfg", "pres")
+...
+if(is_method("PUBLISH")) {
+    $xavp(pres=>priority) = 100;
+}
+...
+</programlisting>
+    </example>
+	</section>
+
+	<section id="presence.p.retrieve_order">
+	    <title><varname>retrieve_order</varname> (int)</title>
+	    <para>
+		If set to 0, presentity records are retrieve by received_time order.
+		if set to 1, presentity records are retrieve by priority order.
+	    </para>
+	    <para>
+		<emphasis>
+		    Default value is 0.
+		</emphasis>
+	    </para>
+	    <example>
+		<title>Set <varname>retrieve_order</varname> parameter</title>
+		<programlisting format="linespecific">
+...
+modparam("presence", "retrieve_order", 1)
+...
+</programlisting>
+	    </example>
+	</section>
 
 </section>
 




More information about the sr-dev mailing list