[OpenSIPS-Users] regex in if statement

Podrigal, Aron aronp at guaranteedplus.com
Thu Apr 16 05:37:50 CEST 2015


Yes.
http://www.opensips.org/Documentation/Script-Statements
 On Apr 15, 2015 10:30 PM, "Terrance Devor" <ter.devor at gmail.com> wrote:

> Hello Everyone,
>
> Is it possible to do regex in conditional statements (ie, if....).
> What I am trying to do is something like:
>
> if($si=~"192\.168\.1\.*")
>
> To get all internal IP address. Is this possible?
>
> Terrance
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150415/84608f9c/attachment.htm>


More information about the Users mailing list