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.