From cb5295234a1b106473c3fdb9ff25c23bfc9fbcd1 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 3 Nov 2023 09:06:38 +0100 Subject: [PATCH] sl: docs for send_reply_error() --- src/modules/sl/doc/sl_functions.xml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/modules/sl/doc/sl_functions.xml b/src/modules/sl/doc/sl_functions.xml index 11ef4706755..8f2715b7a00 100644 --- a/src/modules/sl/doc/sl_functions.xml +++ b/src/modules/sl/doc/sl_functions.xml @@ -130,7 +130,7 @@ send_reply_mode("403", "Invalid user - $fU", "3"); Sends back an error reply describing the nature of the last - internal error. Usually this function should be used after a + internal error. Usually this function should be used after a script function that returned an error code. @@ -174,6 +174,29 @@ sl_reply_error(); if(status=="408") sl_forward_reply("404", "Not found"); ... + + + + +
+ + <function moreinfo="none">send_reply_error()</function> + + + For the current request, the internal error code reply is sent back + stateful or stateless, depending of the TM module: + if a transaction exists for the current request, then the reply is sent + statefully, otherwise stateless. + + + It can be used from REQUEST_ROUTE, ONREPLY_ROUTE and FAILURE_ROUTE. + + + <function>send_reply_error</function> usage + +... +send_reply_error(); +...