<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 class="moz-txt-link-freetext" href="http://kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or">http://kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 03/03/15 01:28, Yuriy Gorlichenko
wrote:<br>
</div>
<blockquote
cite="mid:CABSP_VemfLQ8a4ppHbmvED2D+U4BFbQptWu5S07OO92UaD563Q@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
href="mailto:sip%3A12345678900@phone.provider.com">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 class="moz-txt-link-rfc2396E" href="sip:54.241.2.206;lr=on;ftag=as38f20f7b;did=ce8.10a"><sip:54.241.2.206;lr=on;ftag=as38f20f7b;did=ce8.10a></a></div>
<div>Max-Forwards: 70</div>
<div>From: "New User" <<a moz-do-not-send="true"
href="mailto:sip%3A00987654321@phone.provider.com">sip:00987654321@phone.provider.com</a>>;tag=as38f20f7b</div>
<div>To: <<a moz-do-not-send="true"
href="mailto:sip%3A12345678900@phone.provider.com">sip:12345678900@phone.provider.com</a>>;tag=B4r1B569001DB</div>
<div>Contact:
<a class="moz-txt-link-rfc2396E" href="sip:contact@10.0.1.17:50600;alias=23.101.134.111~1578~1"><sip:contact@10.0.1.17:50600;alias=23.101.134.111~1578~1></a></div>
<div>Call-ID: <a moz-do-not-send="true"
href="http://473fc8a64d7d96aa515780dc6237a6d5@10.0.1.17:50600">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 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 World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>