[OpenSIPS-Users] Remove headers

Edwin eahaselhoff at gmail.com
Tue Dec 15 08:56:08 CET 2015


I tried to use the remove_hf function with a regular expression to remove all
headers except some selected headers.

Let's say I want to keep Allow, Call-ID, Contact, ...

^(?!Allow|Call/-ID|Contact|Content/-Type|CSeq|From|Supported|To).*$

But the question mark gives an error. Is there a way to use a negative
lookaround?



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Remove-headers-tp7600225.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list