Functions
sl_send_reply(code, reason)
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.
sl_send_reply usage
...
sl_send_reply("404", "Not found");
...
send_reply(code, reason)
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.
send_reply usage
...
send_reply("404", "Not found");
...
send_reply("403", "Invalid user - $fU");
...
sl_reply_error()
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.
sl_reply_error usage
...
sl_reply_error();
...