The answer to the question as posed would also be interesting, however.
It seems to me it should work.
On 9/9/20 3:34 PM, Mack Hendricks wrote:
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");
}
Thanks
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/