<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>From the following link: <A
href="http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/vvfax_c/int_c/dpeer_c/dp_confg.htm#wp1066868">Dial
Peers and Configuration</A>: it shows that if you want to eliminate a strink
beginning with a,b, or c you have to use [^a^b^c] and that by using [^abc] you
are only eliminating the a.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>There has to be an answer somewhere! STU PACKET save us!
;)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV>
<HR>
</DIV>
<DIV><A name=wp1067204></A>
<P class=pBu1_Bullet1><FONT size=2>•<IMG height=2
src="http://www.cisco.com/univercd/illus/images/blank.gif" width=19
border=0>Circumflex symbol (^)—When used within brackets, allows you to
eliminate a digit from consideration for dial peer matching purposes. For
example, a destination pattern including [^7] would not match any string
beginning with 7. </FONT></P><A name=wp1067205></A>
<P class=pB2_Body2><FONT size=2>Multiple digits can also be called out within
brackets to eliminate more than one initial digit from dial peer matching. For
example, a destination pattern including [^4^6^8] would not match any digit
string beginning with 4, 6, or 8. </FONT></P>
<BLOCKQUOTE>
<DIV class=Note3><FONT size=2>
<HR>
<IMG src="http://www.cisco.com/univercd/illus/images/note.gif"><B>Note
</B><IMG height=2 src="http://www.cisco.com/univercd/illus/images/blank.gif"
width=6 border=0>A destination pattern including [^752] would allow matching
only for digit strings beginning with 5 or 2, but would not match any digit
strings beginning with 7. This destination pattern entry essentially behaves
the same way as if you had simply included [52] in the destination pattern.
</FONT></DIV><FONT size=2>
<HR class=Note3>
</FONT></BLOCKQUOTE><A name=wp1067207></A>
<P class=pB2_Body2><FONT size=2>To eliminate a multiple digit string from dial
peer matching consideration, you must represent each digit in the string as a
succession of individual exceptions. For example, if you wanted to eliminate
matching any digit string beginning with 537 from consideration for dial peer
matching, you must ensure that your destination pattern includes [^5][^3][^7].
</FONT></P><A name=wp1067208></A>
<P class=pB1_Body1><FONT size=2>The same destination pattern can be shared
across multiple dial peers to form hunt groups.
<HR>
</FONT></P></DIV></BLOCKQUOTE>
<DIV>--------------------------------------------------------------------------------<BR>Lelio
Fulgenzi, B.A.<BR>Senior Analyst (CCS) * University of Guelph * Guelph, Ontario
N1G 2W1<BR>(519) 824-4120 x56354 (519) 767-1060 FAX
(JNHN)<BR>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<BR>...there's no such thing as a bad timbit...<BR></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Nunnally@Harding.edu href="mailto:Nunnally@Harding.edu">John
Nunnally</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cisco-voip@puck.nether.net
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 06, 2007 10:07
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [cisco-voip] Destination
Pattern Question</DIV>
<DIV><BR></DIV>Assuming these are supposed to obey regular expression rules,
the meaning of<BR>the ^ is based on where it is used. If it is the FIRST
character inside a<BR>set of square brackets, it represents a "negated
class". So the [^....]<BR>construct is a specialized expression which
means "match any character not<BR>included in this class of characters".
[567] is a character class that<BR>matches any one of 5, 6 or 7. [^567]
is a negated class that match any<BR>character except 5, 6, or
7.<BR><BR>[^5^6^7] would match any character except 5, 6, 7, or a carat (^).
The first<BR>carat negates the class. The other two carats are
characters in the class<BR>and are redundant.<BR><BR>A ^ symbol anywhere
except in the [^...] construct is an "anchor" that<BR>represents the beginning
of a line of text.<BR><BR>Following this discussion, I'm not sure I've seen
any examples that<BR>contradict these rules either in CM or IOS.<BR><BR>John
N.<BR><BR>> -----Original Message-----<BR>> From: <A
href="mailto:cisco-voip-bounces@puck.nether.net">cisco-voip-bounces@puck.nether.net</A>
[mailto:cisco-voip-<BR>> <A
href="mailto:bounces@puck.nether.net">bounces@puck.nether.net</A>] On Behalf
Of Ted Nugent<BR>> Sent: Tuesday, February 06, 2007 8:23 AM<BR>> To:
Patrick Diener; <A
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A><BR>>
Subject: Re: [cisco-voip] Destination Pattern Question<BR>> <BR>>
Thanks, thats what i get for going against my gut and<BR>> following an old
link on cco.<BR>> <BR>> <BR>> --- Patrick Diener <<A
href="mailto:patrick.diener@gmail.com">patrick.diener@gmail.com</A>>
wrote:<BR>> <BR>> > hmmm a lot of confusion about just one character
;-)<BR>> ><BR>> > just to clarify<BR>> ><BR>> > ^ on
CM AND IOS when used in either a route pattern<BR>> > or<BR>> >
destination-pattern specifys an EXCLUSION or<BR>> > EXCLUSION RANGE so
[^2]<BR>> > == everything except 2 AND [^2347] == everything<BR>>
> except 2, 3, 4 or 7<BR>> ><BR>> > ^ on IOS when used in
translation-rules or voice<BR>> > translation-rules<BR>> > means
that the following digit will only match if<BR>> > found at the
start<BR>> > of a string so rule /^1/ /2/ will replace the digit<BR>>
> 1 with the digit 2<BR>> > if 1 is found at the start of a string
(e.g. 12345<BR>> > -> 22345)<BR>> ><BR>> >
Regards<BR>> > Patrick<BR>> ><BR>> > On 2/6/07, Ted Nugent
<<A href="mailto:tednugent69@yahoo.com">tednugent69@yahoo.com</A>>
wrote:<BR>> > > CM ^ = excludes, [^2] means everything except
2<BR>> > ><BR>> > > IOS ^ = begins with, [^2] means
everything<BR>> > beginning<BR>> > > with 2<BR>> >
><BR>> > ><BR>> ><BR>> <A
href="http://www.cisco.com/en/US/partner/products/sw/iosswrel/ps5013/products_fe">http://www.cisco.com/en/US/partner/products/sw/iosswrel/ps5013/products_fe</A><BR>>
ature_guide09186a0080080e59.html#1050291<BR>> > ><BR>> >
><BR>> > ><BR>> > ><BR>> > > --- Lelio Fulgenzi
<<A href="mailto:lelio@uoguelph.ca">lelio@uoguelph.ca</A>>
wrote:<BR>> > ><BR>> > > > I think that pattern means
different things in<BR>> > > > CallManager route patterns than it
does IOS<BR>> > > > dial-peers.<BR>> > > >
----- Original Message -----<BR>> > > > From: Patrick
Mowry<BR>> > > > To: <A
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A><BR>>
> > > Sent: Monday, February 05, 2007 6:13 PM<BR>>
> > > Subject: Re: [cisco-voip] Destination
Pattern<BR>> > > > Question<BR>> > > ><BR>> >
> ><BR>> > > > Here is a quick confirmation from
IOS ver<BR>> > > > 12.4(11)T. Looks like [^2]<BR>> >
> > means anything but 2 and [^23] means anything<BR>>
> but<BR>> > > > 2 or 3.<BR>> > > ><BR>> >
> > Weird.<BR>> > > ><BR>> > >
><BR>> > > ><BR>> > > > dial-peer voice
100 voip<BR>> > > > destination-pattern
2...<BR>> > > > session target
ipv4:192.168.150.10<BR>> > > > codec
g711ulaw<BR>> > > > !<BR>> > >
> 2611_CCME#sh dialplan number 2999<BR>> > >
> Macro Exp.: 2999<BR>> > > ><BR>> > >
> VoiceOverIpPeer100<BR>> > >
> peer type =
voice, system default peer<BR>> > =<BR>> > > > FALSE,
information type<BR>> > > > = voice,<BR>> > >
> description =
`',<BR>> > >
> tag = 100,
destination-pattern =<BR>> > `2...',<BR>> > >
>
answer-address = `', preference=0,<BR>> > >
> CLID
Restriction = None<BR>> > >
> CLID Network
Number = `'<BR>> > >
> CLID Second
Number sent<BR>> > >
> CLID Override
RDNIS = disabled,<BR>> > >
> source
carrier-id = `', target<BR>> > carrier-id<BR>> > > > =
`',<BR>> > >
> source
trunk-group-label = `', target<BR>> > > > trunk-group-label
= `',<BR>> > >
> numbering
Type = `unknown'<BR>> > >
> group = 100,
Admin state is up,<BR>> > Operation<BR>> > > > state is
up,<BR>> > >
> incoming
called-number = `',<BR>> > > > connections/maximum =
0/unlimited,<BR>> > >
> DTMF Relay =
disabled,<BR>> > >
> modem
transport = system,<BR>> > >
> URI
classes:<BR>> > >
>
Incoming (Called) =<BR>> > >
>
Incoming (Calling) =<BR>> > >
>
Destination =<BR>> > >
> huntstop =
disabled,<BR>> > >
> in bound
application associated:<BR>> > 'DEFAULT'<BR>> > >
> out bound
application associated: ''<BR>> > >
> dnis-map
=<BR>> > >
> permission
:both<BR>> > >
> incoming COR
list:maximum capability<BR>> > >
> outgoing COR
list:minimum requirement<BR>> > >
> Translation
profile (Incoming):<BR>> > >
> Translation
profile (Outgoing):<BR>> > >
> incoming call
blocking:<BR>> > >
>
translation-profile = `'<BR>> > >
>
disconnect-cause = `no-service'<BR>> > >
> advertise
0x40 capacity_update_timer<BR>> > 25<BR>> > > > addrFamily
4<BR>> > > > oldAddrFamily 4<BR>> > >
><BR>> > > > 2611_CCME#sh dialplan number
3999<BR>> > > > Macro Exp.: 3999<BR>> > >
> No match, result=-1<BR>> > > ><BR>> > >
> 2611_CCME#conf t<BR>> > > > Enter
configuration commands, one per line.<BR>> > End<BR>> > > >
with CNTL/Z.<BR>> > > > 2611_CCME(config)#dial-peer
voice 100 voip<BR>> > > >
2611_CCME(config-dial-peer)#dest<BR>> > > >
2611_CCME(config-dial-peer)#destination-p<BR>> > > ><BR>> >
2611_CCME(config-dial-peer)#destination-pattern<BR>> > > >
[^2]...<BR>> > > >
2611_CCME(config-dial-peer)#^Z<BR>> > > > 2611_CCME#sh
dialplan number 3999<BR>> > > > Macro Exp.:
3999<BR>> > > ><BR>> > > >
VoiceOverIpPeer100<BR>> > >
> peer type =
voice, system default peer<BR>> > =<BR>> > > > FALSE,
information type<BR>> > > > = voice,<BR>> > >
> description =
`',<BR>> > >
> tag = 100,
destination-pattern =<BR>> > > > `[^2]...',<BR>> > >
>
answer-address = `', preference=0,<BR>> > >
> CLID
Restriction = None<BR>> > >
> CLID Network
Number = `'<BR>> > >
> CLID Second
Number sent<BR>> > >
> CLID Override
RDNIS = disabled,<BR>> > >
> source
carrier-id = `', target<BR>> > carrier-id<BR>> > > > =
`',<BR>> > >
> source
trunk-group-label = `', target<BR>> > > > trunk-group-label
= `',<BR>> > >
> numbering
Type = `unknown'<BR>> > >
> group = 100,
Admin state is up,<BR>> > Operation<BR>> > > > state is
up,<BR>> > >
> incoming
called-number = `',<BR>> > > > connections/maximum =
0/unlimited,<BR>> > >
> DTMF Relay =
disabled,<BR>> > >
> modem
transport = system,<BR>> > >
> URI
classes:<BR>> > >
>
Incoming (Called) =<BR>> > >
>
Incoming (Calling) =<BR>> > >
>
Destination =<BR>> > >
> huntstop =
disabled,<BR>> > >
> in bound
application associated:<BR>> > 'DEFAULT'<BR>> > >
> out bound
application associated: ''<BR>> > >
> dnis-map
=<BR>> > >
> permission
:both<BR>> > >
> incoming COR
list:maximum capability<BR>> > >
> outgoing COR
list:minimum requirement<BR>> > >
> Translation
profile (Incoming):<BR>> > >
> Translation
profile (Outgoing):<BR>> > >
> incoming call
blocking:<BR>> > >
>
translation-profile = `'<BR>> > >
>
disconnect-cause = `no-service'<BR>> > >
> advertise
0x40 capacity_update_timer<BR>> > 25<BR>> > > > addrFamily
4<BR>> > > > oldAddrFamily 4<BR>> > >
><BR>> > > > 2611_CCME#sh dialplan number
2999<BR>> > > > Macro Exp.: 2999<BR>> > >
> No match, result=-1<BR>> > > ><BR>> > >
> 2611_CCME#conf t<BR>> > > > Enter
configuration commands, one per line.<BR>> > End<BR>> > > >
with CNTL/Z.<BR>> > > > 2611_CCME(config)#dial-peer
voice 100 voip<BR>> > > ><BR>> >
2611_CCME(config-dial-peer)#destination-pattern<BR>> > > >
[^23]^Z.<BR>> > > > 2611_CCME#sh dialplan number
2999<BR>> > > > Macro Exp.: 2999<BR>> > >
> No match, result=-1<BR>> > > ><BR>> > >
> 2611_CCME#sh dialplan number 3999<BR>> > >
> Macro Exp.: 3999<BR>> > > > No match,
result=-1<BR>> > > ><BR>> ><BR>> === message truncated
===<BR>> <BR>> <BR>> <BR>> <BR>>
__________________________________________________________________________<BR>>
__________<BR>> We won't tell. Get more on shows you hate to love<BR>>
(and love to hate): Yahoo! TV's Guilty Pleasures list.<BR>> <A
href="http://tv.yahoo.com/collections/265">http://tv.yahoo.com/collections/265</A><BR>>
_______________________________________________<BR>> cisco-voip mailing
list<BR>> <A
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A><BR>>
<A
href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</A><BR><BR>_______________________________________________<BR>cisco-voip
mailing list<BR><A
href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</A><BR><A
href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</A><BR></BLOCKQUOTE></BODY></HTML>