Skip to content

Commit

Permalink
textopsx: docs for change_reply_status_code() function
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Aug 2, 2020
1 parent 7b95ddd commit dfa1677
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/modules/textopsx/doc/functions.xml
Expand Up @@ -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>
Expand Down

0 comments on commit dfa1677

Please sign in to comment.