From: Richard Dumoulin (richard.dumoulin@vanco.es)
Date: Sun Jun 06 2004 - 18:56:56 GMT-3
Hi Scott,
I remember I tried it too but no way:
Rack1R5(config-dial-peer)#destination-pattern 428(8888|9999)
Incorrect format for E.164 Number
regular expression must be of the form
^[][^0-9,ABCD#*.?+%()-]*T?(\$)?$
:((
--Richard
-----Original Message-----
From: Scott Morris [mailto:swm@emanon.com]
Sent: domingo, 06 de junio de 2004 23:42
To: Richard Dumoulin; ccielab@groupstudy.com
Subject: RE: VoIP digits !!
That would be correct, which would mean you'd match the peer as soon sa your
dialed 4288 or 4289. :)
You may also be able to do interval configuration. Intervals are set up
with the {} immediately following the expression in question.
So an answer to your lab would be:
428[89]{4}
Which will match 428 plus EXACTLY 4 values derived from either 8 or 9. Note
that you could also match 4288989 and other variables like that. So that's
not likely either.
That brings us to the class theory with (). The parentheses can be used to
denote multiple characters together as a string to look at. They are
treated like a single character is at that point.
So the "real" answer to you scenario permitting ONLY those two options
should be:
428(8888|9999)
The "|" represents OR and the other two sets of digits represent one thing
solved in the equation. So if you use this as your destination pattern, and
check it out by "show dialplan number 4288989" you shouldn't get a match.
Hope that helps!
Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713, CISSP,
JNCIP, et al. IPExpert CCIE Program Manager IPExpert Sr. Technical
Instructor swm@emanon.com/smorris@ipexpert.net
http://www.ipexpert.net
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Richard Dumoulin
Sent: Sunday, June 06, 2004 4:48 PM
To: swm@emanon.com; ccielab@groupstudy.com
Subject: RE: VoIP digits !!
Thanks for the explanation. I thought I had to put a comma to separate
characters :(
In a scenario the requirement was to have a dial-peer that match both
strings: 4288888 and 4289999. I did find no way to do it even with the
doc-cd so I looked at the solutions and surprise !?!?!? It was:
Destination-pattern 428[8888,9999] !! Previously I thought it was not
possible ...
So this means, 8 or 8 or 8 or 8 or 9 or 9 or 9 or 9 ?
Thanks,
--Richard
-----Original Message-----
From: Scott Morris [mailto:swm@emanon.com]
Sent: domingo, 06 de junio de 2004 22:38
To: Richard Dumoulin; ccielab@groupstudy.com
Subject: RE: VoIP digits !!
Based on all the docs, and examples, the [] are used to contain a single
digit. An implicit "or" exists between ANY character listed. (Called a
'character class' by the way)
With the ranges you had:
[11-12] means match '1' OR the range '1-1' OR '2' as the single character
[11-102] means match '1' OR the range '1-1' OR '0' OR '2' as the single
character [98-102] means match '9' OR the range '8-1' (which is invalid) OR
'0' OR '2' as the single character
Hope that helps with things! But it really is just a single character
match!!
Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713, CISSP,
JNCIP, et al. IPExpert CCIE Program Manager IPExpert Sr. Technical
Instructor swm@emanon.com/smorris@ipexpert.net
http://www.ipexpert.net
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Richard Dumoulin
Sent: Sunday, June 06, 2004 3:35 PM
To: ccielab@groupstudy.com
Subject: VoIP digits !!
Funny, the doc says "Note <<...>> Only single-digit ranges are supported.
For example, [98-102] is invalid" here
http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/vvfa
x_c/int_c/dpeer_c/dp_confg.htm#wp1067010
<http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/vvf
ax_c/int_c/dpeer_c/dp_confg.htm#wp1067010>
But actually it works depending on the numbers entered !!?!?!? Anyone can
clarify this ? Please see below:
Rack1R5(config)#dial-peer voice 1 voip Rack1R5(config-dial-peer)#destina
Rack1R5(config-dial-peer)#destination-pattern [98-102] % invalid []
rangeIncorrect format for ^([98-102])$
Rack1R5(config-dial-peer)#destination-pattern 1[98-102] % invalid []
rangeIncorrect format for ^(1[98-102])$
Rack1R5(config-dial-peer)#destination-pattern ^(1[98-102])$ % invalid []
rangeIncorrect format for ^(^(1[98-102])$)$
Rack1R5(config-dial-peer)#dest Rack1R5(config-dial-peer)#destination-pattern
528[8888,9999] Rack1R5(config-dial-peer)#destination-pattern 528[9999-9999]
Rack1R5(config-dial-peer)#destination-pattern 528[98-102]
% invalid [] rangeIncorrect format for ^(528[98-102])$
Rack1R5(config-dial-peer)#destination-pattern 528[9994-9999]
Rack1R5(config-dial-peer)#destination-pattern 528[11-12]
Rack1R5(config-dial-peer)#destination-pattern 528[11-121]
Rack1R5(config-dial-peer)#destination-pattern 528[91-99]
Rack1R5(config-dial-peer)# Rack1R5(config-dial-peer)#destination-pattern
528[91-102] Rack1R5(config-dial-peer)#destination-pattern 528[98-102] %
invalid [] rangeIncorrect format for ^(528[98-102])$
Rack1R5(config-dial-peer)#destination-pattern 528[98-103] % invalid []
rangeIncorrect format for ^(528[98-103])$
Rack1R5(config-dial-peer)#destination-pattern 528[98-99]
Rack1R5(config-dial-peer)#
This archive was generated by hypermail 2.1.4 : Sat Jul 03 2004 - 19:40:33 GMT-3