I guess the difference is that in telephony you can match the prefix of
something. So "." is still ONE digit, you are not "matching" the rest,
which in fact may not have happened yet :)
(Digits in many signalling protocols do take some time to be signalled)
-Carlos
Joe Astorino @ 31/05/2013 19:58 -0300 dixit:
> 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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
-- Carlos G Mendioroz <tron_at_huapi.ba.ar> LW7 EQI Argentina Blogs and organic groups at http://www.ccie.netReceived on Sat Jun 01 2013 - 14:18:30 ART
This archive was generated by hypermail 2.2.0 : Mon Jul 01 2013 - 06:58:42 ART