[SR-Users] Regular Expression Evaluation

Mack Hendricks mack at dopensource.com
Wed Sep 9 21:34:33 CEST 2020

I already run into issues with this.  If I want to only execute a statement if it’s an INVITE with a request domain of 10.10.*.* how do I format?  Below is what I have.   I always have to play with it a bit.   Looking to get a better understanding.  The regular expression tester I’m using states that it’s valid.  What am I doing wrong?

 if ((is_method("INVITE")) && ($rd =~ "10\.10\..+")) {

                # Do something
                xlog("fix got a 10.10 address");



More information about the sr-users mailing list