Hello all, very glad to have been a user on this list, though I have been lurking.
I've checked the documentation and have had trouble finding out information on how to translate my standard regexes (perl) into SER's routing logic
I'm trying to use the following logic:
if (uri =~ "^sip:1[0-9]{10}@[0-9]{3}.[0-9]{3}.1.foo.bar.net") { #perform actions }
Now, that SHOULD match the following scenario:
uri has 1 + 10 digits + @ + 3digits + . + 3digits + . + 1 + .foor.bar.net
Unfortunately, it's not working.Any help translating the regex, or even just a link to the syntax allowed, maybe it's not allowing {n} to match n times?
Thanks, Sherwood McGowan
Can I assume that 'foor' is a typo?
uri has 1 + 10 digits + @ + 3digits + . + 3digits + . + 1 + .foor.bar.net
Sherwood McGowan wrote:
Hello all, very glad to have been a user on this list, though I have been lurking.
I've checked the documentation and have had trouble finding out information on how to translate my standard regexes (perl) into SER's routing logic
I'm trying to use the following logic:
if (uri =~ "^sip:1[0-9]{10}@[0-9]{3}.[0-9]{3}.1.foo.bar.net") { #perform actions }
Now, that SHOULD match the following scenario:
uri has 1 + 10 digits + @ + 3digits + . + 3digits + . + 1 + .foor.bar.net
Unfortunately, it's not working.Any help translating the regex, or even just a link to the syntax allowed, maybe it's not allowing {n} to match n times?
Thanks, Sherwood McGowan
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Yes, thanks for pointing it out. I was trying to hurry and type it before lunch
->-----Original Message----- ->From: Mik Cheez [mailto:michael_bulk@wildgate.com] ->Sent: Wednesday, September 28, 2005 12:52 PM ->To: Sherwood McGowan; serusers@lists.iptel.org ->Subject: Re: [Serusers] Regular Expression Problems in this ->if statement? -> ->Can I assume that 'foor' is a typo? -> ->>uri has 1 + 10 digits + @ + 3digits + . + 3digits + . + 1 + ->>.foor.bar.net -> ->Sherwood McGowan wrote: -> ->> Hello all, very glad to have been a user on this list, ->though I have ->> been lurking. ->> ->> I've checked the documentation and have had trouble finding out ->> information on how to translate my standard regexes (perl) ->into SER's ->> routing logic ->> ->> I'm trying to use the following logic: ->> ->> if (uri =~ ->"^sip:1[0-9]{10}@[0-9]{3}.[0-9]{3}.1.foo.bar.net") { ->> #perform actions ->> } ->> ->> Now, that SHOULD match the following scenario: ->> ->> uri has 1 + 10 digits + @ + 3digits + . + 3digits + . + 1 + ->> .foor.bar.net ->> ->> Unfortunately, it's not working.Any help translating the regex, or ->> even just a link to the syntax allowed, maybe it's not ->allowing {n} to ->> match n times? ->> ->> Thanks, ->> Sherwood McGowan ->> ->>------------------------------------------------------------- ->---------- ->>- ->> ->>_______________________________________________ ->>Serusers mailing list ->>serusers@lists.iptel.org ->>http://lists.iptel.org/mailman/listinfo/serusers ->> ->> -> ->