append_brach() is needed on failure_route(). This was discussed
several times on the mailing list.
Regards,
Ovidiu Sas
On Mon, Aug 18, 2008 at 2:54 PM, Elena-Ramona Modroiu <ramona(a)rosdev.ro> wrote:
Jonathan K. Creasy wrote:
I have this block in my configuration:
<excerpt from failure_route[1]>
if(!cr_rewrite_uri("1", "call_id")){
t_reply("403", "$fU@$fd Not allowed");
} else {
# In case of failure, re-route the request
prefix("+");
t_on_failure("2");
if (is_method("INVITE"))
t_on_reply("1");
# Relay the request to the gateway
t_relay();
}
The output in my log file:
Aug 18 18:41:29 lab02b /usr/local/sbin/openser[5622]: INFO:
carrierroute:carrier_rewrite_msg: uri 8909 was rewritten to sip: 8909@gateway_one
Aug 18 18:41:29 lab02b /usr/local/sbin/openser[5626]: INFO: Failure Route Started
Aug 18 18:41:29 lab02b /usr/local/sbin/openser[5626]: INFO:
carrierroute:carrier_rewrite_msg: uri 8909 was rewritten to sip: 8909@gateway_two
Aug 18 18:41:29 lab02b /usr/local/sbin/openser[5626]: ERROR: tm:t_forward_nonack: no
branch for forwarding
Aug 18 18:41:29 lab02b /usr/local/sbin/openser[5626]: ERROR: tm:w_t_relay:
t_forward_nonack failed
What am I missing that I need to do prior to calling t_relay()?
I haven't used carrierroute module, but seems it doesn't add the new uri
as branch. After the line prefix("+") add append_branch() and see if it
work now.
Regards,
Ramona
-Jonathan
_______________________________________________
Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users