[OpenSER-Users] How to do =~ case insensitive? [SOLVED]
Iñaki Baz Castillo
ibc at in.ilimit.es
Fri Jul 18 12:35:36 CEST 2008
El Friday 18 July 2008 12:22:46 Iñaki Baz Castillo escribió:
> 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?
The trick was:
if avp_check("$hdr(Privacy)","re/id/I")
:)
--
Iñaki Baz Castillo
ibc at in.ilimit.es
More information about the sr-users
mailing list