Skip to content

Commit

Permalink
textops: docs for replace_hdrs()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 17, 2018
1 parent 21ad31f commit c1a7be3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/modules/textops/doc/textops_admin.xml
Expand Up @@ -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>
Expand Down

0 comments on commit c1a7be3

Please sign in to comment.