Module: kamailio
Branch: master
Commit: b159d282227443a107080f1d3f19f6d74f257bc7
URL:
https://github.com/kamailio/kamailio/commit/b159d282227443a107080f1d3f19f6d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-09T12:11:31+02:00
corex: docs for set_send_socket() and set_recv_socket()
---
Modified: src/modules/corex/doc/corex_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/b159d282227443a107080f1d3f19f6d…
Patch:
https://github.com/kamailio/kamailio/commit/b159d282227443a107080f1d3f19f6d…
---
diff --git a/src/modules/corex/doc/corex_admin.xml
b/src/modules/corex/doc/corex_admin.xml
index f401c3e022..ed38520696 100644
--- a/src/modules/corex/doc/corex_admin.xml
+++ b/src/modules/corex/doc/corex_admin.xml
@@ -493,6 +493,60 @@ if(isxflagset("1"))
...
resetxflag("1");
...
+</programlisting>
+ </example>
+ </section>
+ <section id="corex.f.set_send_socket">
+ <title><function
moreinfo="none">set_send_socket(saddr)</function></title>
+ <para>
+ Set the socket for sending out.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>saddr</emphasis> - the address of the local socket
+ (listen address). Can be a static string or contain
+ pseudo-variable.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>set_send_socket</function> usage</title>
+ <programlisting format="linespecific">
+...
+set_send_socket("upd:127.0.0.1:5060");
+...
+</programlisting>
+ </example>
+ </section>
+ <section id="corex.f.set_recv_socket">
+ <title><function
moreinfo="none">set_recv_socket(saddr)</function></title>
+ <para>
+ Switch local socket used for receiving the message.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>saddr</emphasis> - the address of the local socket
+ (listen address). Can be a static string or contain
+ pseudo-variable.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>set_recv_socket</function> usage</title>
+ <programlisting format="linespecific">
+...
+set_recv_socket("upd:127.0.0.1:5060");
+...
</programlisting>
</example>
</section>