Re: [SR-Users] properly removing First Via header received
i tried also with remove_hf_value but still the same problem. sometimes i have a line only with ";received=x.x.x.x;rport=" and sometimes even worse the next header does not start on a new line like this ";received=x.x.x.x;rport=Max-Forward: 70" De : sr-users de la part de James Browne Envoyé : mercredi 16 mars 2022 12:30 À : Kamailio (SER) - Users Mailing List Objet : Re: [SR-Users] properly removing First Via header received I don't know about the lump, but maybe try remove_hf_value instead. This should also work if/when multiple Via values are comma-separated in a single header field. https://www.kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.f.remove_hf_value James On Wed, 16 Mar 2022 at 08:19, Patrick Karton wrote: > > i want to remove the First Via Header received from uac to kamailio. > > so in my script i use remove_hf("Via") but in the relayed request i see that > ";received=x.x.x.x;rport=" is left without any header before it. > > i think internally kamailio adds a lump before i call the remove_hf function. > > how to do it properly ? > > Thanks > __ > Kamailio - Users Mailing List - Non Commercial Discussions > * sr-users@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] properly removing First Via header received
I don't know about the lump, but maybe try remove_hf_value instead. This should also work if/when multiple Via values are comma-separated in a single header field. https://www.kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.f.remove_hf_value James On Wed, 16 Mar 2022 at 08:19, Patrick Karton wrote: > > i want to remove the First Via Header received from uac to kamailio. > > so in my script i use remove_hf("Via") but in the relayed request i see that > ";received=x.x.x.x;rport=" is left without any header before it. > > i think internally kamailio adds a lump before i call the remove_hf function. > > how to do it properly ? > > Thanks > __ > Kamailio - Users Mailing List - Non Commercial Discussions > * sr-users@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] properly removing First Via header received
i want to remove the First Via Header received from uac to kamailio. so in my script i use remove_hf("Via") but in the relayed request i see that ";received=x.x.x.x;rport=" is left without any header before it. i think internally kamailio adds a lump before i call the remove_hf function. how to do it properly ? Thanks __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users