<div dir="ltr">Hi Bernd,<div>I am using remove_hf{"Via") without any issue to remove Via headers added from previous hops.</div><div>As explained by Henning you cannot remove the Via that kamailio has to insert as a proxy, also because, by rfc, the Via is used to relay back the replies. If Kamailio would not insert its own Via in an outgoing message, the receiving hop would have no way of responding to the request.</div><div><br></div><div>Cheers,</div><div><br></div><div>Federico</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 11, 2022 at 12:21 PM Bernd Krueger-Knauber <<a href="mailto:bkk@ednt.de">bkk@ednt.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Henning,<br>
<br>
thanks for your response.<br>
<br>
We had a problem were a BYE was not sended by the pbx. So I wanted to <br>
test if it makes a difference if only the Record-Route entry<br>
is in the header of the INVITE.<br>
<br>
But in general, I will call this a bug in kamailio.<br>
<br>
There is nothing written about corner cases in the documentation.<br>
If I use remove_hf() I assume that it works.<br>
If I can not trust what it is written in the documentation, I have to <br>
check each SIP packet for inconsistencies if I use an additional<br>
command in the cfg file.<br>
<br>
2 possibilities:<br>
1. Add this behaviour in the documentation (bad, but ok)<br>
2. The command should work as described.<br>
<br>
Best regards,<br>
<br>
Bernd<br>
<br>
<br>
Am 09.08.2022 um 21:59 schrieb Henning Westerholt:<br>
> Hello,<br>
><br>
> the Via header is a bit of a special one, as its obviously also added from the Kamailio server during relay or other operations. This might interfere with the textops remove_hf operation.<br>
><br>
> What is your goal that you want to achieve? There might be another way to doing it.<br>
><br>
> Cheers,<br>
><br>
> Henning<br>
><br>
<br>
<br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>