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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2018-07-17T08:03:02+02:00

textops: docs for replace_hdrs()

---

Modified: src/modules/textops/doc/textops_admin.xml

---

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

---

diff --git a/src/modules/textops/doc/textops_admin.xml 
b/src/modules/textops/doc/textops_admin.xml
index 6be825efc9..0984e003c8 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -301,6 +301,38 @@ replace_body("openser", "&kamailio; SIP Proxy");
                </example>
        </section>
 
+       <section id="textops.f.replace_hdrs">
+               <title>
+               <function moreinfo="none">replace_hdrs(re, txt)</function>
+               </title>
+               <para>
+               Replaces the first occurrence of re in the SIP headers of the 
message
+               with txt.
+               </para>
+               <para>Meaning of the parameters is as follows:</para>
+               <itemizedlist>
+               <listitem>
+                       <para><emphasis>re</emphasis> - Regular expression.
+                       </para>
+               </listitem>
+               <listitem>
+                       <para><emphasis>txt</emphasis> - String.
+                       </para>
+               </listitem>
+               </itemizedlist>
+               <para>
+               This function can be used from ANY_ROUTE.
+               </para>
+               <example>
+               <title><function>replace_hdrs</function> usage</title>
+               <programlisting format="linespecific">
+...
+replace_body("&kamailio;", "&kamailio; SIP Proxy");
+...
+</programlisting>
+               </example>
+       </section>
+
        <section id="textops.f.replace_all">
                <title>
                <function moreinfo="none">replace_all(re, txt)</function>


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to