<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,<br>
    </p>
    given that this question was asked few times in the past, I put it
    in the FAQ:<br>
    <br>
      -
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_sip_request_retrans">https://www.kamailio.org/wiki/tutorials/faq/main#how_is_the_sip_request_retrans</a><br>
    <br>
    Hope the explanation there is clear enough, if not ask more here and
    I will complete with further details.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 12.01.18 07:39, Abdelmuhaimen Seaudi
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABFmVg4T5a9pOdCROi574wnOf9+D7aWe3DyyQV+kabkVH+of3w@mail.gmail.com">
      <div dir="auto">Hi.
        <div dir="auto"><br>
        </div>
        <div dir="auto">In the below part from kamailio.cfg, why didn't
          we just exit if t_precheck_trans returns true ?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Why did we run t_check_trans, although there
          might be another process already running the other
          t_check_trans ?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">
          <div dir="auto"># handle retransmissions</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><span class="Apple-tab-span" style="white-space:pre">       </span>if
            (!is_method("ACK")) {</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><span class="Apple-tab-span" style="white-space:pre">               </span>if(t_precheck_trans())
            {</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><span class="Apple-tab-span" style="white-space:pre">                       </span>t_check_trans();</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><span class="Apple-tab-span" style="white-space:pre">                       </span>exit;</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><span class="Apple-tab-span" style="white-space:pre">               </span>}</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><span class="Apple-tab-span" style="white-space:pre">               </span>t_check_trans();</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto"><span class="Apple-tab-span" style="white-space:pre">       </span>}</div>
        </div>
      </div>
    </blockquote>
    <br>
    <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 Advanced Training - March 5-7, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>