[sr-dev] git:master:a169b298: dialplan: note and example for prefixing string param with s: for rpc dialplan.translate

Daniel-Constantin Mierla miconda at gmail.com
Mon Oct 15 08:24:57 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-15T08:24:24+02:00

dialplan: note and example for prefixing string param with s: for rpc dialplan.translate

---

Modified: src/modules/dialplan/doc/dialplan_admin.xml

---

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

---

diff --git a/src/modules/dialplan/doc/dialplan_admin.xml b/src/modules/dialplan/doc/dialplan_admin.xml
index e9f8f95350..ed8bad4fae 100644
--- a/src/modules/dialplan/doc/dialplan_admin.xml
+++ b/src/modules/dialplan/doc/dialplan_admin.xml
@@ -682,10 +682,12 @@ xlog("translated to var $var(y) \n");
         		<para>Parameters: <emphasis>2</emphasis></para>
         		<itemizedlist>
                 	<listitem>
-                	<para><emphasis>Dial plan ID</emphasis></para>
+					<para><emphasis>Dial plan ID</emphasis> (number)</para>
                 	</listitem>
                 	<listitem>
-                	<para><emphasis>Input String</emphasis></para>
+					<para><emphasis>Input string</emphasis> (string) - it
+					can be prefixed with 's:' to avoid auto-conversion when
+					the command is executed with CLI apps such as &kamcmd;.</para>
                 	</listitem>
 			</itemizedlist>
 			<para>
@@ -693,6 +695,7 @@ xlog("translated to var $var(y) \n");
 			</para>
 		<programlisting  format="linespecific">
 		&kamcmd; dialplan.translate 1 "abcdxyz"
+		&kamcmd; dialplan.translate 1 s:123456789
 		</programlisting>
 		</section>
 	</section>




More information about the sr-dev mailing list