[Kamailio-Users] failure route configuration
Elena-Ramona Modroiu
ramona at rosdev.ro
Mon Aug 18 20:54:57 CEST 2008
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 at 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 at 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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list