[sr-dev] git:master:b9e8e09f: posops: docs for pos_set_char()

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 8 12:47:14 CET 2021


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-11-08T12:46:53+01:00

posops: docs for pos_set_char()

---

Modified: src/modules/posops/doc/posops_admin.xml

---

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

---

diff --git a/src/modules/posops/doc/posops_admin.xml b/src/modules/posops/doc/posops_admin.xml
index fcfd23ac12..1a38b85c67 100644
--- a/src/modules/posops/doc/posops_admin.xml
+++ b/src/modules/posops/doc/posops_admin.xml
@@ -156,6 +156,32 @@ pos_insert("100", "kamailio-$si");
 				<programlisting format="linespecific">
 ...
 pos_insert("100", "10");
+...
+				</programlisting>
+			</example>
+		</section>
+		<section id="posops.f.pos_set_char">
+			<title>
+				<function moreinfo="none">pos_set_char(idx, val)</function>
+			</title>
+			<para>
+			Set the char at position index to first character in val.
+			</para>
+			<para>
+			The idx can be an integer value or a variable holding an integer. If
+			the value is negative, the position is counted from the end of the buffer.
+			</para>
+			<para>
+			The val can be a static string or variables.
+			</para>
+			<para>
+			This function can be used from ANY_ROUTE.
+			</para>
+			<example>
+				<title><function>pos_set_char()</function> usage</title>
+				<programlisting format="linespecific">
+...
+pos_set_char("100", "x");
 ...
 				</programlisting>
 			</example>




More information about the sr-dev mailing list