[asterisk-users] Dialplan

Matt mhoppes at gmail.com
Wed Jul 25 07:09:28 CDT 2007


Ok let's forget the asterisk dialplans for a second.   Maybe I am
misunderstanding the 'national' option.   When I set the
dialplan=national for the zaptel config what exactly does that do?  I
was under the impression that re-wrote numbers.

On 7/24/07, Anselm Martin Hoffmeister <anselm at hoffmeister-online.de> wrote:
> Am Montag, den 23.07.2007, 14:33 -0400 schrieb Matt:
> > Hi,
> > What dialplan option do I need to send a call out like this:
> >
> > NPA-NXX-xxxx local calls
> > 1-NPA-NXX-xxxx - long distance
> >
> > Won't 'national' send it out NPA-NXX-xxxx no matter if it's long
> > distance or not?
>
> I do not understand your point here. If the user dials 1-212-5551212,
> you could send out exactly that string, as in
> exten => _1NXXXXXXXXX,1,Dial(SIP/${EXTEN}@provider)
>
> and if she dials 617-1234567, similarly.
>
> Or do you wish Asterisk to magically remove the leading "1", but only
> for two or three area codes, because in that case the calls will be
> charged as "local calls"? In that case, you might require your users to
> _always_ dial the leading "1" and get away with something like
>
> exten => _1617XXXXXXX,1,Dial(SIP/${EXTEN:1}@provider)
> exten => _1857XXXXXXX,1,Dial(SIP/${EXTEN:1}@provider)
> exten => _1NXXXXXXXXX,1,Dial(SIP/${EXTEN}@provider)
>
> (assuming 617 and 857 are local area codes)
>
> ymmv, and the documentation about pattern in dialplans
> http://www.voip-info.org/wiki/index.php?page=Asterisk+config
> +extensions.conf
> should be the next text you read, probably.
>
> If this is not what you want, please describe your idea.
>
> BR
> Anselm (who never owned a landline in the NANP...)
>
>
> _______________________________________________
> --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