[Asterisk-Users] really need help with outgoing calls..PSTN errors
Mark Hulber
asterisk-admin at hulber.com
Sat Mar 4 07:04:06 MST 2006
Have you tried dialing an 800 number? Does that work? This extension:
exten => _9XXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
seems to be missing one X since it's only 10 digits long. Your PSTN
probably requires a 1 to be dialed also. On the other hand,
exten => _91[1234567]XXNXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
you should probably be matching this extension instead although you
won't be able to match anywhere that has an area code that starts with
an 8 or 9. (905, 916, 914 as a few examples).
MARK.
sdgesa gaeharth wrote:
> I cant seem to get outgoing calls to be placed properly .. No matter
> what I try I get an error from the PSTN company saying that the "call
> can not be completed as dialed" or "you need to dial a one..." The
> asterisk debugging seems to show the correct number being dialed out
> of the zap interface... the "9" is being stripped and there is a "1"
> where it is supposed to be. I am thinking it is a problem between the
> zap interface and the PSTN.
>
> thanks
>
> extensions.conf
> [general]
> static=yes
> writeprotect=no
> autofallthrough=yes
> clearglobalvars=no
> priorityjumping=no
> [globals]
> ATTENDANT=1001
> OUTBOUNDTRUNK=ZAP/g1
> [extentions]
> exten => _10XX,1,Ringing
> exten => _10XX,2,Dial(SIP/${EXTEN},20)
> exten => _10XX,3,Answer
> exten => _10XX,4,VoiceMail(u${EXTEN}@voicemail
> <mailto:u$%7BEXTEN%7D at voicemail>)
> exten => _10XX,5,Hangup
> [voicemail]
> exten => _910XX,1,Wait(1)
> exten => _910XX,2,VoiceMailMain(${EXTEN:1}@voicemail)
> [local]
> include => extentions
> include => voicemail
> [incoming]
> exten => s,1,Answer
> exten => s,n,Wait(2)
> exten => s,n,Set(TIMEOUT(response)=15)
> exten => s,n,Background(company-intro)
> exten => s,n,WaitExten()
> exten => s,n,Playback(vm-goodbye)
> exten => s,n,Hangup()
> exten => 0,1,Dial(SIP/${ATTENDANT},20)
> exten => 1,1,Directory(voicemail,extentions,f)
> exten => 2,1,Directory(voicemail,extentions)
> exten => 1234,1,Playback(abandon-all-hope)
> include => extentions
> exten => i,1,Playback(vm-goodbye)
> exten => i,2,Hangup()
> exten => t,1,Playback(vm-goodbye)
> exten => t,2,Hangup()
> [outbound]
> ignorepat => 9
> exten => _9XXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
> exten => _9XXXXXXXXXX,2,Congestion()
> exten => _9XXXXXXXXXX,102,Congestion()
> exten => _91800NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
> exten => _91800NXXXXXX,2,Congestion()
> exten => _91800NXXXXXX,102,Congestion()
> exten => _91888NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
> exten => _91888NXXXXXX,2,Congestion()
> exten => _91888NXXXXXX,102,Congestion()
> exten => _91877NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
> exten => _91877NXXXXXX,2,Congestion()
> exten => _91877NXXXXXX,102,Congestion()
> exten => _91866NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
> exten => _91866NXXXXXX,2,Congestion()
> exten => _91866NXXXXXX,102,Congestion()
> exten => _91900NXXXXXX,1,Congestion()
> exten => _91976NXXXXXX,1,Congestion()
> exten => _91[1234567]XXNXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
> exten => _91[1234567]XXNXXXXXX,2,Congestion()
> exten => _91[1234567]XXNXXXXXX,102,Congestion()
> exten => 9911,1,Dial(${OUTBOUNDTRUNK}/911)
> exten => 9411,1,Dial(${OUTBOUNDTRUNK}/411)
> exten => 0,1,Dial(${OUTBOUNDTRUNK}/0)
>
> [local-access]
> include => local
> include => outbound
>
> zapata.conf:
> [channels]
> group => 1
> language=en
> context=incoming
> signalling=fxs_ks
> switchtype=national
> usecallerid=yes
> hidecallerid=no
> callwaiting=yes
> callerid => "Dulles Micro, LLC" <703 450 5000>
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
> rxgain=0.0
> txgain=0.0
> channel => 1
>
> zaptel.conf:
> fxsks=1,2,3,4
> loadzone = us
> defaultzone=us
>
>
>
>
> ------------------------------------------------------------------------
> Brings words and photos together (easily) with
> PhotoMail
> <http://us.rd.yahoo.com/mail_us/taglines/PMall/*http://photomail.mail.yahoo.com>
> - it's free and works with Yahoo! Mail.
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.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