[SR-Users] Request timout - Change value

Loic Chabert chabert.loic.74 at gmail.com
Mon Aug 24 11:54:50 CEST 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150824/e1980d14/attachment.html>


More information about the sr-users mailing list