<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>have you set modparams for tm module related to reparsing the
      invite or on dns failover?</p>
    <p>The build_local() should be used only in some specific cases and
      want to be sure it doesn't get executed somehow when it shouldn't
      be.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 30/11/2016 16:40, Helio Okuyama
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACaHPnhMN9TS8vLViLaHtO7QQ-vk5Z2FDb9zDQEhOTppG+KUxA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Local messages are malformed in Kamailio 4.4.X. For example
          after receiving an error response (603) to an INVITE message,
          the ACK is generated with header Max-Forwards concatenated to
          header CSeq and double CRLF, which is wrong.</div>
        <div><br>
        </div>
        <div>Via: SIP/2.0/TLS
173.16.10.61:5061;branch=z9hG4bKc782.5b960c7c48a4363a0126963daa797eb0.0;i=7</div>
        <div>From: "22861"<<a moz-do-not-send="true"
            href="mailto:sip%3A22861@173.16.10.61">sip:22861@173.16.10.61</a>;transport=tls>;tag=snl_OIPEOzJUNy</div>
        <div>Call-ID: 61b500a71b510a1Pj61qq1k9dPW</div>
        <div>To:
          <a class="moz-txt-link-rfc2396E" href="sip:551138174108@174.16.4.108:5061;transport=tls"><sip:551138174108@174.16.4.108:5061;transport=tls></a>;tag=435012226</div>
        <div>CSeq: 2351 ACKMax-Forwards: 70</div>
        <div><br>
        </div>
        <div>User-Agent:...</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>The fix for that seems to be just the order of append_str
          in function build_local() from tm\t_msgbuilder.c.</div>
        <div><br>
        </div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>append_str(
          p, method, method_len );</div>
        <div>+<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>append_str(
          p, CRLF, CRLF_LEN );</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>append_str(
          p, MAXFWD_HEADER, MAXFWD_HEADER_LEN );</div>
        <div>-<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>append_str(
          p, CRLF, CRLF_LEN );</div>
        <div><br>
        </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>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>