From: Carlos G Mendioroz (tron@huapi.ba.ar)
Date: Sun Jul 11 2004 - 15:45:04 GMT-3
Tom,
No offense here but am curious, have you tried dialing 123450 ? :-)
Tom Rogers wrote:
> VoIP#conf t
> Enter configuration commands, one per line. End with CNTL/Z.
> VoIP(config)#dial-peer voice 1111 voi
> VoIP(config-dial-peer)#destination-pattern 12345[0011,1111]
> VoIP(config-dial-peer)#^Z
> VoIP#
> *Mar 27 21:48:24.659: %SYS-5-CONFIG_I: Configured from console by console
> VoIP#sh run | b dial-p
> dial-peer cor custom
> !
> dial-peer voice 1111 voip
> destination-pattern 12345[0011,1111]
> !
> !
>
> VoIP#sh ver
> Cisco Internetwork Operating System Software
> IOS (tm) C1700 Software (C1700-SV3Y7-M), Version 12.2(15)T9, RELEASE
> SOFTWARE (fc2)
> TAC Support: http://www.cisco.com/tac
> Copyright (c) 1986-2003 by cisco Systems, Inc.
> Compiled Sat 01-Nov-03 06:24 by ccai
> Image text-base: 0x80008120, data-base: 0x810C0B90
> ROM: System Bootstrap, Version 12.2(4r)XL, RELEASE SOFTWARE (fc1)
> VoIP uptime is 3 weeks, 5 days, 21 hours, 48 minutes
> System returned to ROM by power-on
> System image file is "flash:c1700-sv3y7-mz.122-15.T9.bin"
> cisco 1760 (MPC860P) processor (revision 0x200) with 57477K/8059K bytes
> of memory.
> Processor board ID VMS060929HY (3686342477), with hardware revision BB67
> MPC860P processor: part number 5, mask 2
> Bridging software.
> X.25 software, Version 3.0.0.
> 1 FastEthernet/IEEE 802.3 interface(s)
> 1 Serial network interface(s)
> 2 Serial(sync/async) network interface(s)
> 2 Voice FXO interface(s)
> 2 Voice FXS interface(s)
> WIC T1-DSU
> 32K bytes of non-volatile configuration memory.
> 32768K bytes of processor board System flash (Read/Write)
> Configuration register is 0x2102
> VoIP#
>
> Carlos G Mendioroz <tron@huapi.ba.ar> wrote:
>
> No offense taken :-)
>
> Yes, I did, and it was matching on anything inside the brackets.
>
> It seems that SOME IOSs have an enhanced grammar that supports {} for
> repetition and | inside () for alternation, so you do have more
> expressive power there. In those you could use 12345(00|11)11
> or 12345[01]{2}11 for the task being requested, but on most IOSs,
> trying
> any of those will yield with
>
> regular expression must be of the form ^[][0-9,ABCD#*.?+%()-]*T?(\$)?$
>
> I don't know which exact train/version has the enhanced grammar.
> There are previous GS threads on this subject.
>
> Tom Rogers wrote:
>
> > Carlos,
> > No offense here but am curious, have you ever tried within [ ] ?
> If not
> > ry it out...
> > Tom
> >
> > Carlos G Mendioroz wrote:
> >
> > Doc says that the ONLY thing that can be in [] are numbers.
> > It's been said that some IOS support extended grammars, like {} to
> > represent repetition, but I have seen no router that supports that.
> > So, no, there is no way to get those two numbers and only those.
> >
> >
> > Tom Rogers wrote:
> >
> > > How about 12345[0011,1111]
> > >
> > > Mike Calhoon wrote:Hi Geert,
> > >
> > > I think you are looking for 12345[00,11]11, but someone please
> > correct me if
> > > I am mistaken.
> > >
> > > Thanks,
> > > Mike
> > >
> > >
> > > -----Original Message-----
> > > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> > Behalf Of
> > > Geert Nijs
> > > Sent: Sunday, July 11, 2004 10:52 AM
> > > To: ccielab@groupstudy.com
> > > Subject: Destination Pattern
> > >
> > > Hello group,
> > >
> > > I am looking to match the following telephone numbers in ONE
> > > "destination pattern" match:
> > > 123451111
> > > 123450011
> > >
> > > (if possible at all, don't know....)
> > >
> > > I was thinking about: destination-pattern 12345[01][01]11
> > >
> > > but this also matches: 123450111 and 123451011
> > >
> > > I was also thinking about: destination-pattern 12345[(00)(11)]11
> > >
> > > but this doesn't work...
> > >
> > > Any other ideas ??
> > >
> > > Regards,
> > > Geert
> > >
> > >
> > >
> >
> ############################################################################
> > > #########
> > > This e-mail and any attached files are confidential and may be
> > legally
> > > privileged.
> > > If you are not the addressee, any disclosure, reproduction,
> copying,
> > > distribution,
> > > or other dissemination or use of this communication is strictly
> > prohibited.
> > > If you have received this transmission in error please notify Simac
> > > immediately
> > > and then delete this e-mail.
> > >
> > > Simac has taken all reasonable precautions to avoid virusses in
> > this email.
> > > Simac does not accept liability for damage by virusses, for the
> > correct and
> > > complete
> > > transmission of the information, nor for any delay or
> > interruption of the
> > > transmission,
> > > nor for damages arising from the use of or reliance on the
> > information.
> > >
> > > All e-mail messages addressed to, received or sent by Simac or
> Simac
> > > employees
> > > are deemed to be professional in nature. Accordingly, the sender or
> > > recipient of
> > > these messages agrees that they may be read by other Simac
> > employees than
> > > the official
> > > recipient or sender in order to ensure the continuity of
> work-related
> > > activities
> > > and allow supervision thereof.
> > >
> >
> ############################################################################
> > > #########
> > >
> > >
> >
> _______________________________________________________________________
> > > Please help support GroupStudy by purchasing your study materials
> > from:
> > > http://shop.groupstudy.com
> > >
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> >
> _______________________________________________________________________
> > > Please help support GroupStudy by purchasing your study materials
> > from:
> > > http://shop.groupstudy.com
> > >
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> > >
> >
> _______________________________________________________________________
> > > Please help support GroupStudy by purchasing your study materials
> > from:
> > > http://shop.groupstudy.com
> > >
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> >
> > --
> > Carlos G Mendioroz LW7 EQI Argentina
> >
> >
> ------------------------------------------------------------------------
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail
> >
> > - Send 10MB messages!
>
> --
> Carlos G Mendioroz LW7 EQI Argentina
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Take Yahoo! Mail with you!
> <http://us.rd.yahoo.com/mail_us/taglines/mobile/*http://mobile.yahoo.com/maildemo>
> Get it on your mobile phone.
-- Carlos G Mendioroz <tron@huapi.ba.ar> LW7 EQI Argentina
This archive was generated by hypermail 2.1.4 : Sun Aug 01 2004 - 10:11:52 GMT-3