[asterisk-users] Pattern matching....
Tony Mountifield
tony at softins.clara.co.uk
Fri Feb 22 05:20:25 CST 2008
In article <47BDD86E.1090005 at fnords.org>, Eric Wieling <eric at fnords.org> wrote:
> No that will not work. You would want three exten => lines, one for
> each area code.
And if you have a lot of common dialplan that you don't want to duplicate
between the three extension patterns, put the common stuff up at a higher
priority and use Goto to get there:
exten => _404NXXXXXX,1,Goto(200)
exten => _770NXXXXXX,1,Goto(200)
exten => _678NXXXXXX,1,Goto(200)
exten => _NXXNXXXXXX,200,NoOp(Start of common instructions)
exten => _NXXNXXXXXX,n,etc....
Cheers
Tony
> Michael Munger wrote:
> > Will this work to match any number from the 770,404, or 678 area codes?
> >
> >
> >
> > _[404|770|678]NXXXXXX
> >
> >
> >
> > If this won't work, is there a pattern that will do this?
> >
> >
> >
> > Yours,
> >
> > Michael Munger, dCAP
> >
> > 404-438-2128
> >
> > michael at highpoweredhelp.com <mailto:michael at highpoweredhelp.com>
> >
> >
> >
> > Attachment encrypted? click here
> > <http://www.highpoweredhelp.com/tutorials/wincrypt/> .
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
>
> --
> Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS,
> T-1, PRI, Frame Relay, Linux, and network design. Based near
> Birmingham, AL. Now accepting clients worldwide.
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list