[asterisk-users] an easy way to deal with/without leading "1" ?
M Hulber
asterisk-admin at hulber.com
Fri Mar 13 08:35:14 CDT 2009
Cary,
You also forgot 880, 881, 882 although I'm not sure I've ever even come
across one of those.
Cary Fitch wrote:
> In my previous reply, I may be wrong, "877" is probably a valid toll free
> NPA, add it in the mix.
>
> Cary Fitch
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of sean darcy
> Sent: Thursday, March 12, 2009 7:45 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [asterisk-users] an easy way to deal with/without leading "1" ?
>
> I posted this before, but it didn't show up. So if it's a dup...
>
> I'm setting up dialplans to deal with 800 dialing through a different
> channel than regular long distance in the US.
>
> The regular long distance is set up so users can but don't have to
> dial one. That's pretty easy, just one more exten statement. But it's
> a pain dealing with all the 8xx area codes that are toll free.
>
> I tried
>
> exten=>exten => _!877NXXXXXX,2,Dial(${pstnline}/ww1${EXTEN:-10})
>
> but that matches everything. I'd hoped it would only match strings
> that had zero or more characters, followed by the 877 pattern.
>
> sean
>
> _______________________________________________
> -- 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
>
>
> _______________________________________________
> -- 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
>
More information about the asterisk-users
mailing list