<p style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium;">Yes, in my test te parameter reparse_invite was enabled. And I was using Kamailio 4.4.2.</p>
<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium;">Regards,</span><br style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium;" />
<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: medium;">Helio</span>

<p> </p>
 

<hr />
<div><br />
<strong>De: </strong>"Daniel-Constantin Mierla" <miconda@gmail.com><br />
<strong>Enviada: </strong>2016/12/01 06:52:04<br />
<strong>Para: </strong>sr-users@lists.sip-router.org, hok.sh10@gmail.com<br />
<strong>Assunto: </strong> Re: [SR-Users] Local messages are malformed in Kamailio 4.4.X<br />
 </div>

<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</p>
 

<div class="moz-cite-prefix">On 30/11/2016 16:40, Helio Okuyama wrote:</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> </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">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" target="_blank" xhref="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> </div>

<div>User-Agent:...</div>

<div> </div>

<div> </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> </div>

<div>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>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> </div>
</div>
 

<fieldset class="mimeAttachmentHeader"> </fieldset>
 

<pre wrap="">
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="http://bmail.uol.com.br/compose?to=sr-users@lists.sip-router.org" target="_blank" xhref="/compose?to=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" target="_blank" xhref="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>
 

<pre class="moz-signature" cols="72">
-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda" target="_blank" xhref="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank" xhref="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/" target="_blank" xhref="http://www.asipto.com">http://www.asipto.com</a></pre>