[SR-Users] remove_hf_re error on startup

Grant Bagdasarian gb at cm.nl
Tue Jun 27 10:48:07 CEST 2017


Hi,

I'm trying to remove all custom headers starting with X-, except a certain header, but Kamailio won't start due to an error.
ERROR: <core> [route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:455

remove_hf_re("^(?!X-ThisHeaderShouldNotBeRemoved)X-.*")
or
remove_hf_re("^(?!X- ThisHeaderShouldNotBeRemoved)X-")

This is valid regex according to https://regex101.com/

Any idea's why this won't compile?

Regards,

Grant



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170627/da246bbe/attachment.html>


More information about the sr-users mailing list