cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
316
Views
0
Helpful
0
Replies

Regular Expression CPL VCS C

shengnong
Level 1
Level 1

Hello everyone, I have been playing with CPL's, and there's one rule I'm trying to make it work:

 

I had this expression:

 

Originating Zone "testing" 

 

Regex:

(.*)@localdomain.domain.com

 

Something like this in the XML:

<taa:rule originating-zone="testing" destination="(.*)localdomain.domain.com"><proxy/></taa:rule>

<taa:rule originating-zone="testing" destination="(.*)"><reject status="403" reason="Denied by policy."/></taa:rule>

 

Whenever a an user in the testing zone tries to dial:

 

user.name@localdomain.domain.com

 

It doesn't match, and just go to the Deny policy. What could be wrong? I have always been using this tool to test regular expressions:

http://regexpal.com/

 

And it says it matches. Driving me insane why doesn't it work now on the VCS C, it's on version x8.5.1

 

Would like to know if the expression is wrong at many levels hehe, I think this one should do better:

 

(.*)\.(.*)[@](localdomain\.domain\.com)

 

But still the same result, in the tool says it matches, but in VCS doesn't match when I dial. I have other zones with similar expressions tested, and work fine, only from this zone I can see it does weird things, should I recreate the zone?

 

Regards.

 

0 Replies 0