I put this in:
if (t_check_trans()) {
t_reply("503", "Service Unavailable");
} else {
sl_send_reply("503", "Service Unavailable");
}
And it seems to work fine. But I suppose send_reply would be much
simpler... :-)
On Apr 10, 2009, at 10:43 PM, Juha Heinanen wrote:
David Aldworth writes:
kamailio server sends the provisional response to
customer UA if we
cannot find a route for the call. I am using:
t_reply("503", "Service Unavailable");
However this results in:
ERROR:tm:w_t_reply: failed to send a t_reply to a message for which
no
transaction-state has been established
use
send_reply("503", "Service Unavailable");
it works no matter if transaction exists or not. unfortunately
corresponding reply_error() does not exist.
-- juha