Hello,

see t_set_fr() function of tm module -- with it you can set the timeout per transaction, for each step of forwarding -- just use it when you want to change the value.

Cheers,
Daniel

On 24/08/15 11:54, Loic Chabert wrote:
Hello everybody,

I'm using kamailio as a dispatcher in front of asterisk boxes and i use a failure route if asterisk box does not respond or send 500error.

failure_route[RTF_DISPATCH]{
    if(t_is_canceled()){
        exit();
    }

    if(t_check_status("500") || (t_branch_timeout() && !t_branch_replied())){
    xlog("L_WARN","[$fU@$si:$sp]{$rm} Asterisk Box $du is down\n");
    ds_mark_dst("ip");
    if(ds_next_dst()){
      xlog("L_WARN","[$fU@$si:$sp]{$rm} Sending to Asterisk Box - $du\n");
      t_on_failure("RTF_DISPATCH");
      route(RELAY);
      exit;
    }
    }
}

As you can see, i check if "t_branch_timeout() && !t_branch_replied()", but where has been stored timeout value ? How can i change it ? For exemple, i need to set 1s, and then, request expired.

Thanks,
Regards.


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com