[Kamailio-Users] failure route configuration

Jonathan K. Creasy JCreasy at voxitas.com
Mon Aug 18 20:50:14 CEST 2008


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()?

-Jonathan





More information about the Users mailing list