From 05ed94d030f62714cc0220fc6b6e0ffd5a0feb79 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 6 Nov 2020 10:06:42 +0100 Subject: [PATCH] sl: docs for send_reply_mode() --- src/modules/sl/doc/sl_functions.xml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/modules/sl/doc/sl_functions.xml b/src/modules/sl/doc/sl_functions.xml index 1bb12b76c48..11ef4706755 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"); ... + + + + +
+ + <function moreinfo="none">send_reply_mode(code, reason, mode)</function> + + + Similar to send_reply() function, with additional third parameter + mode, which can specify extra operations to be done along with + sending the SIP response. + + + The parameter mode is a flag-based value and can be a combination of: + + + + 1 - do not connect to send the response + (similar to set_reply_no_connect()). + + + + 2 - close the connection after sending the + response (similar to set_reply_close()). + + + + + <function>send_reply_mode</function> usage + +... +send_reply_mode("404", "Not found", "3"); +... +send_reply_mode("403", "Invalid user - $fU", "3"); +...