[sr-dev] git:master:3d7ba76e: corex: documentation for via_add_srvid()
Daniel-Constantin Mierla
miconda at gmail.com
Thu Apr 12 12:29:31 CEST 2018
Module: kamailio
Branch: master
Commit: 3d7ba76ec80e4135af1593c433d5e84fab44fedf
URL: https://github.com/kamailio/kamailio/commit/3d7ba76ec80e4135af1593c433d5e84fab44fedf
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-04-12T12:25:52+02:00
corex: documentation for via_add_srvid()
---
Modified: src/modules/corex/doc/corex_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/3d7ba76ec80e4135af1593c433d5e84fab44fedf.diff
Patch: https://github.com/kamailio/kamailio/commit/3d7ba76ec80e4135af1593c433d5e84fab44fedf.patch
---
diff --git a/src/modules/corex/doc/corex_admin.xml b/src/modules/corex/doc/corex_admin.xml
index 96b3df667c..a8076b36c5 100644
--- a/src/modules/corex/doc/corex_admin.xml
+++ b/src/modules/corex/doc/corex_admin.xml
@@ -573,6 +573,33 @@ set_recv_socket("udp:127.0.0.1:5060");
...
set_source_address("udp:127.0.0.1:5080");
...
+</programlisting>
+ </example>
+ </section>
+ <section id="corex.f.via_add_srvid">
+ <title><function moreinfo="none">via_add_srvid(flags)</function></title>
+ <para>
+ Control if srvid parameter is added or not to local Via. If yes,
+ the value is server_id, added only if it is different than 0.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>flags</emphasis>: 1 - add srvid parameter; 0 - do not
+ add srvid parameter.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>via_add_srvid</function> usage</title>
+ <programlisting format="linespecific">
+...
+via_add_srv("1");
+...
</programlisting>
</example>
</section>
More information about the sr-dev
mailing list