When I set up my Asterisk box at home I didn't want to have to dial 9 to dial off premises, so I gave all my local phones three digit extensions with this format: 1[1,0]*. My thought is that there are no area codes that start with 0 or 1, so if I use those numbers, I can create 20 local extensions that can be dialed with 3 digits, and not have to use a timeout when dialing long distance. If I dial 1, then anything other than 0 or 1, Asterisk knows I am dialing long distance. If I start with any number other than 1, Asterisk knows I am dialing a local or local toll call. This has worked fine for me (as far as I know). Is there some flaw I am not seeing? I see a lot of small businesses that require a 9 to dial out, even though they don't have very many extensions. Couldn't they do what I did and not have to dial 9? I ask because we are having a problem where I work with our Cisco 7940 phones adding an extra 1 sometimes, which gets the local Sheriff upset (too many 911 calls). Thanks, Dave
Quoting "Thczv F. Thczv" <thczv.thczv at gmail.com>:> When I set up my Asterisk box at home I didn't want to have to dial 9 > to dial off premises, so I gave all my local phones three digit > extensions with this format: 1[1,0]*. My thought is that there are no > area codes that start with 0 or 1, so if I use those numbers, I can > create 20 local extensions that can be dialed with 3 digits, and not > have to use a timeout when dialing long distance. If I dial 1, then > anything other than 0 or 1, Asterisk knows I am dialing long distance. > If I start with any number other than 1, Asterisk knows I am dialing > a local or local toll call.In North America: 0 is the intra-lata operator 00 is the inter-lata operator 0+ <something else> will be an operator assisted call 11xx is used for the rotary dial equivilant of *xx on many central office switches. Assuming you are not using rotary dial, I generally use 4 digit extensions with the 11xx format for the same reason you suggest. --Shane ----------------------------------------------------------------
Way make it complicated. Make shore Asterisk match internal numbers first. Else external number. Trixbox works like that by default. No nead for 9 to call external numbers. //Mattias On Fri, Jan 9, 2009 at 12:07 AM, Thczv F. Thczv <thczv.thczv at gmail.com>wrote:> When I set up my Asterisk box at home I didn't want to have to dial 9 > to dial off premises, so I gave all my local phones three digit > extensions with this format: 1[1,0]*. My thought is that there are no > area codes that start with 0 or 1, so if I use those numbers, I can > create 20 local extensions that can be dialed with 3 digits, and not > have to use a timeout when dialing long distance. If I dial 1, then > anything other than 0 or 1, Asterisk knows I am dialing long distance. > If I start with any number other than 1, Asterisk knows I am dialing > a local or local toll call. > > This has worked fine for me (as far as I know). Is there some flaw I > am not seeing? I see a lot of small businesses that require a 9 to > dial out, even though they don't have very many extensions. Couldn't > they do what I did and not have to dial 9? > > I ask because we are having a problem where I work with our Cisco 7940 > phones adding an extra 1 sometimes, which gets the local Sheriff upset > (too many 911 calls). > > Thanks, > Dave > > _______________________________________________ > -- 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 >-- Mattias Andersson -------------------------------- Storskiftesv?gen 6 145 60 Norsborg m. +46-70-799 44 41 h. +46-8-641 38 97 Email: eskes1 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090109/153dd732/attachment.htm
> This has worked fine for me (as far as I know). Is there some flaw I > am not seeing? I see a lot of small businesses that require a 9 to > dial out, even though they don't have very many extensions. Couldn't > they do what I did and not have to dial 9? >Many older systems _cannot_ process the call based on what is dialled (in Asterisk this is called 'pattern matching') - so the first digit (ie: 9) tells the phone system that the user is about to dial an outside number. PaulH
Thczv F. Thczv wrote:> When I set up my Asterisk box at home I didn't want to have to dial 9 > to dial off premises, so I gave all my local phones three digit > extensions with this format: 1[1,0]*. My thought is that there are no > area codes that start with 0 or 1, so if I use those numbers, I can > create 20 local extensions that can be dialed with 3 digits, and not > have to use a timeout when dialing long distance. If I dial 1, then > anything other than 0 or 1, Asterisk knows I am dialing long distance. > If I start with any number other than 1, Asterisk knows I am dialing > a local or local toll call. > > This has worked fine for me (as far as I know). Is there some flaw I > am not seeing? I see a lot of small businesses that require a 9 to > dial out, even though they don't have very many extensions. Couldn't > they do what I did and not have to dial 9? > > I ask because we are having a problem where I work with our Cisco 7940 > phones adding an extra 1 sometimes, which gets the local Sheriff upset > (too many 911 calls). > > Thanks, > Dave > > _______________________________________________ > -- 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 > > >I think you are over thinking this. We set our Asterisk server up with multiple outgoing dial rules to handle local and long distance. Keep in mind that we are connected to SIP provider that takes care of some of this for us. Our local extensions are 2** I have outgoing call rules similar to exten = _NXXXXXX!,1,Dial(outgoing sip connection) ( this is for local calls ) exten = _NXXNXXXXXX!,1,Dial(outgoing sip connection) ( this is for long distance calls ) exten = _911!,1,Dial(outgoing sip connection) (this is of course for dialing 911 ) exten = _011XXXXXX.,1,Dail(yada yada yada) (interntional calls) exten = _1NXXNXXXXXX!,1,Dial(Yada yada yada ) (long distance with a 1 in front.) If you have to have a 1 on front of your long dist numbers ( we don't ) leave off the _NXXNXXXXXX! pattern and only use the last one. Asterisk will now look at the relevant extensions and decide which to use. Using this method if you mis-dial then the phone line does not get used and Asterisk sends a failed number sound. If you dial 3 numbers it will look at the local extension you have set up and if the one you dialed exist it dials it. If you get an error. If you match the patern above it dials out. The only time with this system you would have a problem is if you make your internal extensions 7 or 9 digits. Doing like I have above Asterisk will match your pattern more based on ext length than on what order the numbers are in. Hope that helps -- Brent T. Vrieze CIM Automation Softare Engineer 507-216-0465
On Thu, 8 Jan 2009, Thczv F. Thczv wrote:> When I set up my Asterisk box at home I didn't want to have to dial 9 > to dial off premises, so I gave all my local phones three digit > extensions with this format: 1[1,0]*. My thought is that there are no > area codes that start with 0 or 1, so if I use those numbers, I can > create 20 local extensions that can be dialed with 3 digits, and not > have to use a timeout when dialing long distance. If I dial 1, then > anything other than 0 or 1, Asterisk knows I am dialing long distance. > If I start with any number other than 1, Asterisk knows I am dialing > a local or local toll call.> This has worked fine for me (as far as I know). Is there some flaw I > am not seeing? I see a lot of small businesses that require a 9 to > dial out, even though they don't have very many extensions. Couldn't > they do what I did and not have to dial 9? > > I ask because we are having a problem where I work with our Cisco 7940 > phones adding an extra 1 sometimes, which gets the local Sheriff upset > (too many 911 calls).You don't say, but I'm guessing you'r in the US, or at least not Europe. Starting extensions with 1 isn't a good idea in Europe, as our equivalent of 911 is 112 (and 999 in the UK) Gordon
Thczv F. Thczv schrieb:> When I set up my Asterisk box at home I didn't want to have to dial 9 > to dial off premises, so I gave all my local phones three digit > extensions with this format: 1[1,0]*. My thought is that there are no > area codes that start with 0 or 1, so if I use those numbers, I can > create 20 local extensions that can be dialed with 3 digits, and not > have to use a timeout when dialing long distance. If I dial 1, then > anything other than 0 or 1, Asterisk knows I am dialing long distance. > If I start with any number other than 1, Asterisk knows I am dialing > a local or local toll call. > > This has worked fine for me (as far as I know). Is there some flaw I > am not seeing? I see a lot of small businesses that require a 9 to > dial out, even though they don't have very many extensions. Couldn't > they do what I did and not have to dial 9?Generally speaking, it's impossible to get rid of the 0 (or 9 or 8 or whatever prefix) to get an outside line. It may work for some people with SOHO setups. (Although it should be mentioned that most of them make false assumtions.) As soon as the company has extensions of varying length or extensions longer than 2 digits (so they might as well be phone numbers in the local area - they are rare but they exist) or when we start talking about PBXs in foreign countries you can't avoid the prefix. Philipp Kempgen -- AMOOCON 2009, May 4-5, Rostock / Germany -> http://www.amoocon.de Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --