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

Ben Kaufman bkaufman at bcmone.com
Tue Jun 7 18:00:44 CEST 2022


I know it's not really a direct answer to your question, but wouldn't that remove the Cseq: header.  Are you sure that's desirable?

Ben Kaufman

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Patrick Karton
Sent: Tuesday, June 7, 2022 9:59 AM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] remove headers with less than 5 characters with textops

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}$")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220607/fe1ac3e7/attachment.htm>


More information about the sr-users mailing list