[OpenSER-Users] How to do =~ case insensitive?

Iñaki Baz Castillo ibc at in.ilimit.es
Fri Jul 18 12:22:46 CEST 2008


Hi, I want to do a case insensitive match, for example for Privacy header that 
can contain "id", "ID", "Id"... and other values.

I need something as:

  if ($hdr(Privacy)=~"id"/i) {

but this obviously fails. Which is the way to do it?

Thanks.


-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list