[sr-dev] git:master:d8e823d5: corex: added documentation for set_source_address()

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 10 12:34:37 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-04-10T12:33:57+02:00

corex: added documentation for set_source_address()

---

Modified: src/modules/corex/doc/corex_admin.xml

---

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

---

diff --git a/src/modules/corex/doc/corex_admin.xml b/src/modules/corex/doc/corex_admin.xml
index ed38520696..96b3df667c 100644
--- a/src/modules/corex/doc/corex_admin.xml
+++ b/src/modules/corex/doc/corex_admin.xml
@@ -518,7 +518,7 @@ resetxflag("1");
 		<title><function>set_send_socket</function> usage</title>
 		<programlisting format="linespecific">
 ...
-set_send_socket("upd:127.0.0.1:5060");
+set_send_socket("udp:127.0.0.1:5060");
 ...
 </programlisting>
 		</example>
@@ -545,7 +545,33 @@ set_send_socket("upd:127.0.0.1:5060");
 		<title><function>set_recv_socket</function> usage</title>
 		<programlisting format="linespecific">
 ...
-set_recv_socket("upd:127.0.0.1:5060");
+set_recv_socket("udp:127.0.0.1:5060");
+...
+</programlisting>
+		</example>
+		</section>
+		<section id="corex.f.set_source_address">
+		<title><function moreinfo="none">set_source_address(saddr)</function></title>
+		<para>
+			Set the source address for the message.
+		</para>
+		<para>Meaning of the parameters is as follows:</para>
+		<itemizedlist>
+		<listitem>
+			<para>
+				<emphasis>saddr</emphasis> - the source address in socket format.
+				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_source_address</function> usage</title>
+		<programlisting format="linespecific">
+...
+set_source_address("udp:127.0.0.1:5080");
 ...
 </programlisting>
 		</example>




More information about the sr-dev mailing list