Module: kamailio
Branch: master
Commit: dfa1677800a6b78aabaa1217869d23fac5e1a345
URL:
https://github.com/kamailio/kamailio/commit/dfa1677800a6b78aabaa1217869d23f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-02T17:08:49+02:00
textopsx: docs for change_reply_status_code() function
---
Modified: src/modules/textopsx/doc/functions.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/dfa1677800a6b78aabaa1217869d23f…
Patch:
https://github.com/kamailio/kamailio/commit/dfa1677800a6b78aabaa1217869d23f…
---
diff --git a/src/modules/textopsx/doc/functions.xml
b/src/modules/textopsx/doc/functions.xml
index 717b8ddb40..0ef8dab411 100644
--- a/src/modules/textopsx/doc/functions.xml
+++ b/src/modules/textopsx/doc/functions.xml
@@ -82,6 +82,38 @@ reply_route {
exit;
}
}
+...
+ </programlisting>
+ </example>
+ </section>
+
+ <section id="textopsx.f.change_reply_status_code">
+ <title>
+ <function>change_reply_status_code(vcode)</function>
+ </title>
+ <para>
+ Change the status code for a SIP reply .
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>vcode</emphasis> - the new status code.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from ONREPLY_ROUTE.
+ </para>
+ <example>
+ <title><function>change_reply_status_code</function>
usage</title>
+ <programlisting>
+...
+reply_route {
+ if (status == "604") {
+ change_reply_status_code("404");
+ exit;
+ }
+}
...
</programlisting>
</example>