<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>do you get any 1xx response after sending out the request?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 07/12/2016 21:11, José Seabra wrote:<br>
    </div>
    <blockquote
cite="mid:CAEVZRWuS54M8=-EoqUCn=MP1W1HLczqi8oqDRPgJTX0MYPOKbQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Daniel,
        <div>Yes if I omit the first parameter it works, and if I
          configure other value than 0 on first parameter it only enters
          on failure route after expire the value configured on first
          parameter, for example;</div>
        <div>I i set t_set_fr(10000,2000), call will only enter in
          failure route after 10000 miliseconds.</div>
        <div><br>
        </div>
        <div>This behavior is  very weird, it only appends when i send
          the INVITE to the AOR.</div>
        <div><br>
        </div>
        <div>But maybe is something that I'm doing wrong before this
          route within my kamailio script, anyway i'm still looking for
          the possible causes inside of my script.</div>
        <div><br>
        </div>
        <div>Once again, thank you for your great help.</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div>José</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-12-07 9:48 GMT+00:00
          Daniel-Constantin Mierla <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com"
              target="_blank">miconda@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Hello,</p>
              <p>I haven't found any error message related to tm in the
                logs you attached.</p>
              <p>You say that if you omit the first parameter,
                everything works ok? Can you try to set the first
                parameter to a non-zero value?</p>
              <p>Cheers,<br>
                Daniel<br>
              </p>
              <div>
                <div class="h5"> <br>
                  <div class="m_7497539334894239432moz-cite-prefix">On
                    06/12/2016 16:45, José Seabra wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>
                                <div>Hello Daniel,<br>
                                  <br>
                                </div>
                                Yes, i have attached this in this email,
                                please checkout.<br>
                              </div>
                              Regarding to t_set_fr() function, i use it
                              in several places within my kamailio
                              scripts without any issue, I only noticed
                              this behavior on this particular case.<br>
                              <br>
                            </div>
                            I don't if this can be relevant but I have
                            tested t_set_fr function with the following
                            parameters => t_set_fr(,2000) and it
                            entered on failure route after 2 seconds.<br>
                            <br>
                            <br>
                          </div>
                          Let me know if do you need anything else.<br>
                        </div>
                        Thank you<br>
                      </div>
                      José Seabra<br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2016-12-06 13:26
                        GMT+00:00 Daniel-Constantin Mierla <span
                          dir="ltr"><<a moz-do-not-send="true"
                            href="mailto:miconda@gmail.com"
                            target="_blank">miconda@gmail.com</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000">
                            <p>Hello,</p>
                            <p>any error log messages? Any other
                              t_set_fr() in your config file that may be
                              executed?<br>
                            </p>
                            Cheers,<br>
                            Daniel
                            <div>
                              <div class="m_7497539334894239432h5"><br>
                                <br>
                                <div
                                  class="m_7497539334894239432m_-2464625931462228207moz-cite-prefix">On
                                  06/12/2016 12:01, José Seabra wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div class="m_7497539334894239432h5">
                                  <div dir="ltr">
                                    <div>
                                      <div>Hello there,<br>
                                        I'm using t_set_fr(0,2000) on
                                        calls to registered phones but
                                        by any reason this  isn't
                                        working, the call only enters on
                                        the failure route after 30
                                        seconds in case of no response
                                        from SBC/Phone, anyone has any
                                        idea what can be the reason for
                                        that?<br>
                                      </div>
                                      <br>
                                      if(lookup("location")) {<br>
                                                             
                                      xlog("L_INFO", "routing to
                                      registered phone ruid=$ruid R=$ru
                                      - ID=$ci \n");<br>
                                                             
                                      t_set_fr(0, 2000);<br>
                                                             
                                      t_on_failure("ASBC_FAILURE");<br>
                                                             
                                      t_on_branch("ASBC_BRANCH");<br>
                                                             
                                      route(RELAY);<br>
                                                              exit;<br>
                                          }<br>
                                    </div>
                                    <br>
                                    My RELAY route:<br>
                                    route[RELAY] {<br>
                                    <br>
                                            # enable additional event
                                    routes for forwarded requests<br>
                                            # - serial forking, RTP
                                    relaying handling, a.s.o.<br>
                                            if
                                    (is_method("INVITE|BYE|SUBSCRI<wbr>BE|UPDATE"))<br>
                                            {<br>
                                                   
                                    if(!t_is_set("branch_route"))
                                    t_on_branch("MANAGE_BRANCH");<br>
                                            }<br>
                                            if
                                    (is_method("INVITE|SUBSCRIBE|U<wbr>PDATE"))<br>
                                            {<br>
                                                   
                                    if(!t_is_set("onreply_route"))
                                    t_on_reply("MANAGE_REPLY");<br>
                                            }<br>
                                            if (is_method("INVITE"))<br>
                                            {<br>
                                                   
                                    if(!t_is_set("failure_route"))
                                    t_on_failure("MANAGE_FAILURE")<wbr>;<br>
                                            }<br>
                                    <br>
                                            if (!t_relay())<br>
                                            {<br>
                                                    sl_reply_error();<br>
                                            }<br>
                                            exit;<br>
                                    }<br>
                                    <br>
                                    version: kamailio 4.4.2
                                    (x86_64/linux)<br>
                                    <br>
                                    <div>
                                      <div>Thanks<br>
                                      </div>
                                      <div>
                                        <div>
                                          <div><br>
                                            -- <br>
                                            <div
                                              class="m_7497539334894239432m_-2464625931462228207gmail_signature">Cumprimentos
                                              <div>José Seabra</div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <fieldset
                                    class="m_7497539334894239432m_-2464625931462228207mimeAttachmentHeader"></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="m_7497539334894239432m_-2464625931462228207moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="m_7497539334894239432m_-2464625931462228207moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><span class="m_7497539334894239432HOEnZb"><font color="#888888">
</font></span></pre><span class="m_7497539334894239432HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="m_7497539334894239432HOEnZb"><font color="#888888">
    

    <pre class="m_7497539334894239432m_-2464625931462228207moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="m_7497539334894239432m_-2464625931462228207moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="m_7497539334894239432m_-2464625931462228207moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="m_7497539334894239432m_-2464625931462228207moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </font></span></div>


______________________________<wbr>_________________

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>

<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a>


</blockquote></div>


-- 
<div class="m_7497539334894239432gmail_signature" data-smartmail="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div>



</blockquote>
<pre class="m_7497539334894239432moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="m_7497539334894239432moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="m_7497539334894239432moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="m_7497539334894239432moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre></div></div></div></blockquote></div>

<div>
</div>-- 
<div class="gmail_signature" data-smartmail="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div>



</blockquote>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre></body></html>