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?
Goto http://www.localcallingguide.com/lca_prefix.php and find the local calling area to your number you're based out of. Then you can build the respective lookup for the local and leave the balance to long distance. Further to that, you can then control regardless of whether users dial 1 or not for long distance. D.> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matt > Sent: Monday, July 23, 2007 2:33 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] Dialplan > > 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? > > _______________________________________________ > --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 >
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...)
I am running asterisk 1.2 with bristuff 0.3.0 and have the following problem: When I make a call out it fails with a "chanunavail" message but if I make a call in and then make a call out it is successful. I think this is because BT set the Layer 1 to turn off after a period of time. I need to know how to set the Layer1 / 2 status to call rather than permanent which I think will fix the problem. Neil