So far, my asterisk roll out had been going pretty well. I have four sites, each with servers that are IAX linked to forward extensions between them. So for internal company calls, the system is working great.
My biggest problem right now, is that for two of my locations, but not the other two, when an outgoing call is dialed one of the following will happen.
- The phone call will work (~25% of time)
- The phone company (Verizon/USA) will answer the call indicating that I need to dial a 1 (~50% of time)
or - The phone company will answer and ask if I would like the rate to make this call to hold on or press 0 for operator assistance (~25% of time).
Sometimes, just redialing immediately after getting the error will go through just fine.
The problem is not with the line, because a landline plugged directly into the phone line works just fine, as it did before the asterisk switchover.
I cannot figure out a difference in my extensions.conf file between the systems that work every time, and the ones that don’t. The ones that work are asterisk 1.2.13 on a TDM422B card. The ones that don’t, one is asterisk 1.2.13 also with a TDM422B card, the other is asterisk 1.4.0 with a Sangoma A20402D card.
The inconsistency is what really drives me crazy. I have included the relevant part of my extensions.conf file below in the hopes that one of you may see where my error could be corrected. Many thanks in advance.
The SayDigits lines were just added to make sure that we were dialing the number we thought we were dialing, and we are, at least according to both the SayDigits and the Master.csv log file.
The intent of this dialplan is that
dialing a leading ‘9’ will work, but is not required.
The 1 for a long distance call will be added if not dialed by the user (much like a cell phone).
We have 10 digit dialing here, so if the area code is left off, I want asterisk to add it.
Any help is appreciated, thanks.
- Alex
[company-out]
;emergency calls
exten => 911,1,Dial(Zap/g2/911,60,r)
exten => 9911,1,Dial(Zap/g2/911,60,r)
; Local Calls
exten => _NXXXXXX,1,Dial(Zap/g2/301${EXTEN},60,r)
exten => _9NXXXXXX,1,Dial(Zap/g2/301${EXTEN:1},60,r)
; 10 digit and Long Distance Calls
; Because local 301 is also 10 digit dialing, but not all
; 301’a are local, I will not automatically append the ‘1’
; CORRECTION 3/21/2007 - For some reason, some calls are diverted to
; a verizon message asking if we want rate information, or are sent
; to the you need to dial one message, even when 1 is dialed.
; For now, I am going to make all 10 digit calls have the 1 added.
;exten => _NXXNXXXXXX,1,Dial(Zap/g2/${EXTEN},60,r)
;exten => _9NXXNXXXXXX,1,Dial(Zap/g2/${EXTEN:1},60,r)
;exten => _1NXXNXXXXXX,1,Dial(Zap/g2/${EXTEN},60,r)
;exten => _91NXXNXXXXXX,1,Dial(Zap/g2/${EXTEN:1},60,r)
exten => _NXXNXXXXXX,1,SayDigits(1${EXTEN})
exten => _NXXNXXXXXX,2,Dial(Zap/g2/1${EXTEN},60,r)
exten => _9NXXNXXXXXX,1,SayDigits(1${EXTEN:1})
exten => _9NXXNXXXXXX,2,Dial(Zap/g2/1${EXTEN:1},60,r)
exten => _1NXXNXXXXXX,1,SayDigits(${EXTEN})
exten => _1NXXNXXXXXX,2,Dial(Zap/g2/${EXTEN},60,r)
exten => _91NXXNXXXXXX,1,SayDigits(${EXTEN:1})
exten => _91NXXNXXXXXX,2,Dial(Zap/g2/${EXTEN:1},60,r)
; International Calls
exten => _011.,1,Dial(Zap/g2/${EXTEN},60,r)
exten => _9011.,1,Dial(Zap/g2/${EXTEN:1},60,r)