Module: kamailio Branch: master Commit: e900d05fba75314ac769aceb637c0a3f61eb8f8b URL: https://github.com/kamailio/kamailio/commit/e900d05fba75314ac769aceb637c0a3f...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-04-03T08:48:17+02:00
corex: docs for new functions to set send socket by name
---
Modified: src/modules/corex/doc/corex_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e900d05fba75314ac769aceb637c0a3f... Patch: https://github.com/kamailio/kamailio/commit/e900d05fba75314ac769aceb637c0a3f...
---
diff --git a/src/modules/corex/doc/corex_admin.xml b/src/modules/corex/doc/corex_admin.xml index 0b1d587e7b..98c51f1470 100644 --- a/src/modules/corex/doc/corex_admin.xml +++ b/src/modules/corex/doc/corex_admin.xml @@ -556,6 +556,33 @@ resetxflag("1"); ... set_send_socket("udp:127.0.0.1:5060"); ... +</programlisting> + </example> + </section> + <section id="corex.f.set_send_socket_name"> + <title><function moreinfo="none">set_send_socket_name(sname)</function></title> + <para> + Set the socket for sending out. + </para> + <para>Meaning of the parameters is as follows:</para> + <itemizedlist> + <listitem> + <para> + <emphasis>sname</emphasis> - the name 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_name</function> usage</title> + <programlisting format="linespecific"> +... +set_send_socket_name("sock1"); +... </programlisting> </example> </section> @@ -583,6 +610,33 @@ set_send_socket("udp:127.0.0.1:5060"); ... set_recv_socket("udp:127.0.0.1:5060"); ... +</programlisting> + </example> + </section> + <section id="corex.f.set_recv_socket_name"> + <title><function moreinfo="none">set_recv_socket_name(sname)</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>sname</emphasis> - the name 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_name</function> usage</title> + <programlisting format="linespecific"> +... +set_recv_socket_name("sock1"); +... </programlisting> </example> </section>