Browse code

textopsx: docs for change_reply_status_code() function

Daniel-Constantin Mierla authored on 02/08/2020 15:07:20
Showing 1 changed files
... ...
@@ -82,6 +82,38 @@ reply_route {
82 82
         exit;
83 83
     }
84 84
 }
85
+...
86
+	    </programlisting>
87
+	</example>
88
+    </section>
89
+
90
+    <section id="textopsx.f.change_reply_status_code">
91
+	<title>
92
+	    <function>change_reply_status_code(vcode)</function>
93
+	</title>
94
+	<para>
95
+		Change the status code for a SIP reply .
96
+	</para>
97
+	<para>Meaning of the parameters is as follows:</para>
98
+	<itemizedlist>
99
+	    <listitem>
100
+		<para><emphasis>vcode</emphasis> - the new status code.
101
+		</para>
102
+	    </listitem>
103
+	</itemizedlist>
104
+   		<para>
105
+		This function can be used from ONREPLY_ROUTE.
106
+		</para>
107
+	<example>
108
+	    <title><function>change_reply_status_code</function> usage</title>
109
+	    <programlisting>
110
+...
111
+reply_route {
112
+    if (status == "604") {
113
+        change_reply_status_code("404");
114
+        exit;
115
+    }
116
+}
85 117
 ...
86 118
 	    </programlisting>
87 119
 	</example>