Module: kamailio Branch: master Commit: 05ed94d030f62714cc0220fc6b6e0ffd5a0feb79 URL: https://github.com/kamailio/kamailio/commit/05ed94d030f62714cc0220fc6b6e0ffd...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-11-06T10:06:42+01:00
sl: docs for send_reply_mode()
---
Modified: src/modules/sl/doc/sl_functions.xml
---
Diff: https://github.com/kamailio/kamailio/commit/05ed94d030f62714cc0220fc6b6e0ffd... Patch: https://github.com/kamailio/kamailio/commit/05ed94d030f62714cc0220fc6b6e0ffd...
---
diff --git a/src/modules/sl/doc/sl_functions.xml b/src/modules/sl/doc/sl_functions.xml index 1bb12b76c4..11ef470675 100644 --- a/src/modules/sl/doc/sl_functions.xml +++ b/src/modules/sl/doc/sl_functions.xml @@ -84,6 +84,42 @@ send_reply("404", "Not found"); ... send_reply("403", "Invalid user - $fU"); ... +</programlisting> + </example> + </section> + + <section id="sl.f.send_reply_mode"> + <title> + <function moreinfo="none">send_reply_mode(code, reason, mode)</function> + </title> + <para> + Similar to send_reply() function, with additional third parameter + mode, which can specify extra operations to be done along with + sending the SIP response. + </para> + <para> + The parameter mode is a flag-based value and can be a combination of: + </para> + <itemizedlist> + <listitem> + <para><emphasis>1</emphasis> - do not connect to send the response + (similar to set_reply_no_connect()). + </para> + </listitem> + <listitem> + <para><emphasis>2</emphasis> - close the connection after sending the + response (similar to set_reply_close()). + </para> + </listitem> + </itemizedlist> + <example> + <title><function>send_reply_mode</function> usage</title> + <programlisting format="linespecific"> +... +send_reply_mode("404", "Not found", "3"); +... +send_reply_mode("403", "Invalid user - $fU", "3"); +... </programlisting> </example> </section>