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.

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to