[Kamailio-Users] correct usage of t_reply

Juha Heinanen jh at tutpro.com
Sat Apr 11 06:43:22 CEST 2009


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




More information about the sr-users mailing list