<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    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.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 24/08/15 11:54, Loic Chabert wrote:<br>
    </div>
    <blockquote
cite="mid:CADLP+M0UO=njQJnfQWFRv+dkoNmKPwtQPJpsvtLhVeUGq4O3xQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hello everybody,<br>
              <br>
            </div>
            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.<br>
            <br>
            failure_route[RTF_DISPATCH]{<br>
                if(t_is_canceled()){<br>
                    exit();<br>
                }<br>
            <br>
                if(t_check_status("500") || (t_branch_timeout()
            && !t_branch_replied())){<br>
                xlog("L_WARN","[$fU@$si:$sp]{$rm} Asterisk Box $du is
            down\n");<br>
                ds_mark_dst("ip");<br>
                if(ds_next_dst()){<br>
                  xlog("L_WARN","[$fU@$si:$sp]{$rm} Sending to Asterisk
            Box - $du\n");<br>
                  t_on_failure("RTF_DISPATCH");<br>
                  route(RELAY);<br>
                  exit;<br>
                }<br>
                }<br>
            }<br>
            <br>
          </div>
          <div>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.<br>
          </div>
          <div><br>
            Thanks,<br>
          </div>
          <div>Regards.<br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>