Functions
<function>sl_send_reply(code, reason)</function> For the current request, a reply is sent back having the given code and text reason. The reply is sent stateless, totally independent of the Transaction module and with no retransmission for the INVITE's replies. Meaning of the parameters is as follows: code - Return code. reason - Reason phrase. <function>sl_send_reply</function> usage ... sl_send_reply("404", "Not found"); ...
<function moreinfo="none">send_reply(code, reason)</function> For the current request, a reply is sent back having the given code and text reason. The reply is sent stateful or stateless, depending of the TM module: if the transaction for current request is created, then the reply is sent stateful, otherwise stateless. Meaning of the parameters is as follows: code - Return code. reason - Reason phrase. This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, BRANCH_ROUTE. <function>send_reply</function> usage ... send_reply("404", "Not found"); ... send_reply("403", "Invalid user - $fU"); ...
<function>sl_reply_error()</function> Sends back an error reply describing the nature of the last internal error. Usually this function should be used after a script function that returned an error code. <function>sl_reply_error</function> usage ... sl_reply_error(); ...