Re: OT: Voice Gateway Dial-Peer

From: Joe Astorino <joeastorino1982_at_gmail.com>
Date: Fri, 31 May 2013 18:58:56 -0400

Thanks Mark. So, the period special character in CME does not necessarily
match "a single digit". Seems like it matches "one or more digits" is that
correct? That seems to be the general consensus I have heard over the last
few days from everybody I have bothered :)

Example - If my theory is correct that would mean 4... would match 4000
but it would also match 4123456789 because period represents 1 or MORE of
any digit. Still seems weird to me coming from a background mostly with
regular expressions where . only matches exactly one character, whereas .*
would match 0 or more characters and .+ would match 1 or more characters.

On Fri, May 31, 2013 at 12:23 PM, Mark Snow <msnow_at_ine.com> wrote:

> It does so because it matches the single digit as you say, but then there
> is no regex such as a $ to prevent it from matching more digits.
> If you knew that you only wanted to match, say 10 inbound DNIS digits,
> then you could be more specific with something such as incoming
> called-number ^..........$
>
> Mark Snow
> CCIE #14073 (Voice, Security)
>
> On May 29, 2013, at 12:41 PM, Joe Astorino <joeastorino1982_at_gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm just starting to learn about some voice stuff and see configurations
> > similar to this:
> >
> > dial-peer voice 1 pots
> > incoming called-number .
> > direct-inward-dial
> >
> > From what I gather the "incoming called-number ." matches ANY inbound
> > called number. What I"m confused on is how that works. I was under the
> > impression that the period (.) wildcard matches on any SINGLE digit. To
> > match any number string I would have expected something like incoming
> > called-number .* or perhaps .T.
> >
> > If period only matches a single digit, how does that match against ANY
> > called number?
> >
> > Thanks!
> >
> > --
> > Regards,
> >
> > Joe Astorino
> > CCIE #24347
> > http://astorinonetworks.com
> >
> > "He not busy being born is busy dying" - Dylan
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> >
> >
> >
> >
> >
>
>

-- 
Regards,
Joe Astorino
CCIE #24347
http://astorinonetworks.com
"He not busy being born is busy dying" - Dylan
Blogs and organic groups at http://www.ccie.net
Received on Fri May 31 2013 - 18:58:56 ART

This archive was generated by hypermail 2.2.0 : Mon Jun 03 2013 - 06:34:34 ART