You will have to provide full sip trace of such call to see whats rlwrong with routing.<div><br></div><div>Cheers,</div><div>Daniel<span></span><br><br>On Tuesday, March 3, 2015, Yuriy Gorlichenko <<a href="mailto:ovoshlook@gmail.com">ovoshlook@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I addes msg_apply_changes() but now kamailio dont send ACK message. I see that it only arrievs to kamailio.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-03 9:53 GMT+03:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','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">
    Hello,<br>
    <br>
    remove_hf() removes the entire header, including its parameters.<br>
    <br>
    The issue here seems to be related to the fact that you remove Via
    header and the core adds rport and received parameters -- this
    happens due to requirements from SIP RFCs.<br>
    <br>
    What you need to do is to apply changes once the Via is removed so
    the core doesn't see it anymore, see:<br>
    <br>
      -
<a href="http://kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or" target="_blank">http://kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or</a><br>
    <br>
    Cheers,<br>
    Daniel<div><div><br>
    <br>
    <div>On 03/03/15 01:28, Yuriy Gorlichenko
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">I need to remove all header line witht tags but
        remove_hf() removes only Header:value<br>
        All tags after ";" stay at the packet as garbage and next Header
        moves up<br>
        As there<br>
        <br>
        <div>ACK <a href="javascript:_e(%7B%7D,'cvml','sip:12345678900@phone.provider.com');" target="_blank">sip:12345678900@phone.provider.com</a>
          SIP/2.0</div>
        <div>Via: SIP/2.0/UDP
sip.server.com:5068;branch=z9hG4bKcb7a.9f70ce5990dd153cd0eaa6f1762c059c.0.cs102</div>
        <div><b><i><There var another Via header that I removed with
              remove_hf_re but tags is stiil there and Route header
              mover up></i></b>;rport=1578;received=23.101.134.111Route:
          <a><sip:54.241.2.206;lr=on;ftag=as38f20f7b;did=ce8.10a></a></div>
        <div>Max-Forwards: 70</div>
        <div>From: "New User" <<a href="javascript:_e(%7B%7D,'cvml','sip:00987654321@phone.provider.com');" target="_blank">sip:00987654321@phone.provider.com</a>>;tag=as38f20f7b</div>
        <div>To: <<a href="javascript:_e(%7B%7D,'cvml','sip:12345678900@phone.provider.com');" target="_blank">sip:12345678900@phone.provider.com</a>>;tag=B4r1B569001DB</div>
        <div>Contact:
          <a><sip:contact@10.0.1.17:50600;alias=23.101.134.111~1578~1></a></div>
        <div>Call-ID: <a href="http://473fc8a64d7d96aa515780dc6237a6d5@10.0.1.17:50600" target="_blank">473fc8a64d7d96aa515780dc6237a6d5@10.0.1.17:50600</a></div>
        <div>CSeq: 103 ACK</div>
        <div>User-Agent: Some Device</div>
        <div>Content-Length: 0</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="javascript:_e(%7B%7D,'cvml','sr-users@lists.sip-router.org');" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre><span><font color="#888888">
    </font></span></blockquote><span><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','sr-users@lists.sip-router.org');" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br>-- <br><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/micond</a></div></div><br>