[SR-Users] remove headers with less than 5 characters with textops

M S shaheryarkh at gmail.com
Tue Jun 7 17:58:11 CEST 2022


Removing headers with up 5 characters in name would make SIP message
invalid since many critical headers such as TO, FROM, and VIA etc. will
also be removed. So, even if the regex works, Kamailio will NOT relay this
SIP message.

Thank you.



On Tue, Jun 7, 2022 at 5:00 PM Patrick Karton <patrickarton at hotmail.com>
wrote:

> Hello
>
> im trying to textops module  to remove headers with name length less than
> 5 characters with regular expression but it seems impossible or the module
> does not handle $ char
>
> remove_hf_re("^.{1,5}$")
>
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220607/9a6a955b/attachment.htm>


More information about the sr-users mailing list