Re: [asterisk-users] Not Dialing 9

2009-01-11 Thread Philipp Kempgen
Gordon Henderson schrieb:
 It's relatively easy to get rid of the prefix in the UK. None of my PBXs 
 require you to dial 9 for an outside line, although if you do dial it, 
 it's silently dropped.
 
 We have 10 and 11 digit numbers here, but they're relatively easy to cope 
 with. Shorter codes like 118xxx are easy to cope with, as are the lesser 
 ones, 150, 151, 1471, etc. (just hard-code them in the dial-plan) You can 
 even get away from the local prefixes by insisting that all numbers start 
 with a zero - which is basically what you have to do with a mobile phone 
 in the UK anyway (dial the full 10 or 11 digits, starting with a zero),

If you require the users to always dial the area code then yes,
that works.

 Where I live, we have 5-digit local numbers (they start with a 7), and all 
 others start with something other than 7 and are 6 digits long.

Not so in Germany at least. Depending on where you live the subscriber
numbers (the part after the area code) might be anything from 3
(actually 2 for some PRIs but xx0 is the shortest number you can
dial) to 8 digits. And they vary in length, even within the same
local area.


   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
-- 

___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-11 Thread Gordon Henderson
On Sun, 11 Jan 2009, Philipp Kempgen wrote:

 Gordon Henderson schrieb:
 It's relatively easy to get rid of the prefix in the UK. None of my PBXs
 require you to dial 9 for an outside line, although if you do dial it,
 it's silently dropped.

 We have 10 and 11 digit numbers here, but they're relatively easy to cope
 with. Shorter codes like 118xxx are easy to cope with, as are the lesser
 ones, 150, 151, 1471, etc. (just hard-code them in the dial-plan) You can
 even get away from the local prefixes by insisting that all numbers start
 with a zero - which is basically what you have to do with a mobile phone
 in the UK anyway (dial the full 10 or 11 digits, starting with a zero),

 If you require the users to always dial the area code then yes,
 that works.

With transport and communication becoming easier, it's almost essential to 
know  use to full 10 or 11 digit code in the UK now. It's required by 
mobile phones. (Certianly on O2, but I think Vodaphone might have 
knowledge of the local larea code you're in)

If I drive 25 miles to (eg) Plymouth and see an advert on a bus I'm 
intersted in, with nothing more than Call Plymouth 123456 then they lose 
because I don't know the local dialling code for Plymouth to call them 
from my mobile...

Actually, the whole local thing is badly understood in the UK IME. Once 
upon a time I lived in a city which changed it's numbering scheme twice 
during my stay there - they changed the STD prefix, (0272 to 0117) then 
added a 9 to the local numbers. The last change was probably over 8 years 
ago, and still today people give their number a 01179 xxx xxx, when if I 
dialled xxx xxx from that city, I'd get number unavalable. (The dialling 
code is 0117 and local numbers are 9xx , 3xx , 2xx ) It was 
more confusing when they opened up the 3xx  range - people still 
thought they needed 01179 3xx .

That's just Bristol ... don't get me started about London!!!

(Oh and heres a bit of trivia about Bristol - one of the DID Wholesalers I 
use has the 3-digit prefix of 911 for Bristol numbers. So 0117 911 . 
Lets hope no americans need to dial the emergency services when staying in 
Bristol :)

 Where I live, we have 5-digit local numbers (they start with a 7), and all
 others start with something other than 7 and are 6 digits long.

so I have:

exten =  _7,1,Macro(dialOut,01364${EXTEN})
exten = _XX,1,Macro(dialOut,01364${EXTEN})

Where 01364 is the local prefix for my area. This is fairy trivial to 
setup at install time.

My guess is that in the fullness of time, they'll prefix the 5 digit codes 
with a 9 to make them 6 digit codes. That seems a fairly common practice 
in the UK (prefixing with 9).

 Not so in Germany at least. Depending on where you live the subscriber
 numbers (the part after the area code) might be anything from 3
 (actually 2 for some PRIs but xx0 is the shortest number you can
 dial) to 8 digits. And they vary in length, even within the same
 local area.

My brother lives in Germany. He has told me it's somewhat challenging in 
places!

Gordon

___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-11 Thread Martin Lima

 In North America:
 0 is the intra-lata operator
 00 is the inter-lata operator
 0+ something else will be an operator assisted call
AFAIK this is not correct at least here at east coast (MA, NY, NH...)
1 is a national call (local or long distance)
011 is international call
Some providers allow you to dial without the prefix in their network.

ie my T-mobile number 857-928- can be dialed as:
857928 from other T-mobile phone.
1857928 from any other US provider
+1857928 from europe
001857928 from the most european countries (as regular phone can't 
dial +

Czech republic number 235362XXX can be dialed as:
235362XXX from any phone in Czech republic (without any prefix)
+420235362XXX internationally
011420235362XXX from US (011 international prefix, 420 country code)

Some VoIP gateways require country code every time without any other prefix 
(ie Betamax) - in my case 420235362XXX

Your examle reminds me more old czech (and possibly some european countries) 
behaviour:
local calls - no prefix
long distance - 0 followed by area code
international - 00 followed by country code
Some other prefixes like 81, 82 existed in past to direct trunk dial from one 
exchange to another (but more than 20yrs ago...)
Martin

 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

 


 ___
 -- 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


Re: [asterisk-users] Not Dialing 9

2009-01-11 Thread Wilton Helm
 In North America:
 0 is the intra-lata operator
 00 is the inter-lata operator
 0+ something else will be an operator assisted call
AFAIK this is not correct at least here at east coast (MA, NY, NH...)
1 is a national call (local or long distance)
011 is international call
Some providers allow you to dial without the prefix in their network

In some places 0+ is intra-lata operator assisted and 00+ inter-lata operator 
assisted.  In other places (like CO) we don't have LATAs.

The NA number plan has been and still is much more uniform than in many other 
countries.  However, given the variety of unregulated providers plus the 
breakup of the Bell system, it has diverged some.  The basic NPA-NXX- 
scheme has remained (so far) but details like 1 being optional on Cell phones, 
whether 1 means area code to follow or this is a toll call, whether local 
calls and/or calls within an area code require 7 or 10 digits is up to the LEC 
in each case--its a bit confusing.  Then there are LATAs (or not) and some 
places which have mileage based charges that aren't quite long distance, but 
aren't local, either (ZUM).  

I managed a PBX in the 805 area code where the LEC provided 7 digit local 
dialing, 8 digit toll dialing within the A/C and 11 digit toll dialing outside 
the area code.  Except that two prefixes from the 818 (originally 213) A/C was 
also local and you had to dial 11 digits for that (1+) even though it was 
local.  Furthermore, it was run by a different LEC that had different dialing 
rules, so making the call in the opposite direction had different rules (10 
digit for local in the area code, if I recall).  A bit confusing for someone 
who lived in one community and worked in the other and made calls both 
directions between the two.

We're pretty well off here in CO.  We do have an overlay area code (303 and 
720) so everything is 10 digits, but everything in those two area codes is 
local, there are no ZUMs or LATAs.  The only abnormality is that there are a 
couple of other areas codes in the state that have different tariff rules than 
out of state, but it doesn't affect dialing, only cost and provider.

Wilton
___
-- 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

Re: [asterisk-users] Not Dialing 9

2009-01-10 Thread Philipp Kempgen
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
-- 

___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-10 Thread Gordon Henderson
On Sat, 10 Jan 2009, Philipp Kempgen wrote:

 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.

It's relatively easy to get rid of the prefix in the UK. None of my PBXs 
require you to dial 9 for an outside line, although if you do dial it, 
it's silently dropped.

We have 10 and 11 digit numbers here, but they're relatively easy to cope 
with. Shorter codes like 118xxx are easy to cope with, as are the lesser 
ones, 150, 151, 1471, etc. (just hard-code them in the dial-plan) You can 
even get away from the local prefixes by insisting that all numbers start 
with a zero - which is basically what you have to do with a mobile phone 
in the UK anyway (dial the full 10 or 11 digits, starting with a zero), 
and as incoming caller ID always gives you the full number, it makes sense 
to use the full number when storing speed-dials, etc.

Where I live, we have 5-digit local numbers (they start with a 7), and all 
others start with something other than 7 and are 6 digits long. Trivial to 
add in a pattern for, to add the prefix (01364 in my case) when dialling 
via a VoIP operator. (or to punt it out a BT line)

Some of my assumptions might well be wrong though, but they seem to work 
OK for me and my customers...

Gordon

___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-09 Thread Gordon Henderson
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

___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-09 Thread Lyle Giese
Gordon Henderson wrote:
 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

   
The norm in the US is going to 8 instead of 9 for the outside line. I
use 8 and still use 86 for voice mail(vm).

But using 1 or 0 like you suggest could cause problems with
international dialing.

Lyle
___
-- 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

Re: [asterisk-users] Not Dialing 9

2009-01-09 Thread Jon Weisman
Could you further clarify on this? Why is the norm shifting from 9 to 8? 

-Jon
  - Original Message - 
  From: Lyle Giese 
  To: Asterisk Users Mailing List - Non-Commercial Discussion 
  Sent: Friday, January 09, 2009 8:45 AM
  Subject: Re: [asterisk-users] Not Dialing 9


  Gordon Henderson wrote: 
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

  The norm in the US is going to 8 instead of 9 for the outside line.  I use 8 
and still use 86 for voice mail(vm).

  But using 1 or 0 like you suggest could cause problems with international 
dialing.

  Lyle



--


  ___
  -- 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

Re: [asterisk-users] Not Dialing 9

2009-01-09 Thread Wilton Helm
I set up a couple of PABXs this way 25 years ago.  It was a little simpler then 
because there was a more uniform number plan in the US back then, although most 
of the industry people I talked to though I was totally crazy.  It was a 300 
station 3 digit extensions system.  It worked well for a number of years.

As was previously mentioned briefly, early PABXs not only didn't have pattern 
matching, many couldn't do store and forward dialing, so 9 literally connected 
you to a trunk where you got a second dial tone from the CO before you could do 
more dialing.  That's this history of it.

Where I live now in Colorado we have 1+ for long distance and 10 digits for the 
two local area codes.  Other areas are different.  Since the two local area 
codes are 303 and 720, there are four leading sequences possible
1+ for toll
303+ for local
720+ for local
0+ for anything operator or credit card related.

For my SOHO setup, I opted to used two digit extensions of the form 2+
If I run out, I will use 4+

The one I did 25 years ago was more complicated because the CO allowed (so 
people were used to) 7 digit dialing.  LD could be 1+ seven or 10 digits.  I 
basically avoided local prefixes and hoped the CO didn't throw me too many 
curve balls.  The biggest curve ball was when the changed the meaning of 1 from 
long distance (7 or 10) to area code prefix.  Suddenly what people had to at 
home created conflicts between non-local prefixes in the area code and 
extension numbers.  We just left the old rules in effect, as most people were 
dialing either local or out of area code anyway.

BTW, I'm not aware of any shift towards 8, except that the Hotel/Motel industry 
has been using both 8 and 9 to differentiate between local and long distance.  
It makes programming the switch much simpler.

Wilton
___
-- 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

[asterisk-users] Not Dialing 9

2009-01-08 Thread Thczv F. Thczv
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


Re: [asterisk-users] Not Dialing 9

2009-01-08 Thread Shane Young
Quoting Thczv F. Thczv thczv.th...@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




___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-08 Thread Mattias Andersson
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.th...@gmail.comwrote:

 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: esk...@gmail.com
___
-- 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

Re: [asterisk-users] Not Dialing 9

2009-01-08 Thread Paul Hales

 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

___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-08 Thread Brent Vrieze


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 = _NXX!,1,Dial(outgoing sip connection)   ( this is for local 
calls )
exten = _NXXNXX!,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 = _011XX.,1,Dail(yada yada yada)  (interntional calls)
exten = _1NXXNXX!,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 _NXXNXX! 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


___
-- 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


Re: [asterisk-users] Not Dialing 9

2009-01-08 Thread Jeff LaCoursiere


On Thu, 8 Jan 2009, Brent Vrieze wrote:

 Thczv F. Thczv wrote:

[snip]

 and not
 have to use a timeout when dialing long distance.

[snip]

 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.


[snip excellent explanation of pattern matching]

The key quote above is and not have to use a timeout when dialing long 
distance.  Sure Asterisk (and thus Trixbox) can match your pattern once 
you have sent it on, but that assumes that the phone must wait the 
inter-digit timeout before sending a three digit extension that MIGHT be 
the start of dialing a long distance number.

I have done the same thing, and no I don't think you are missing anything 
for your home setup.

Cheers,

j


___
-- 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