RE: VoIP digits !!

From: Richard Dumoulin (richard.dumoulin@vanco.es)
Date: Sun Jun 06 2004 - 17:48:13 GMT-3


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