<div>In our area code(703), and I am not sure if it is like this in other places, we are required to dial the area code even if we dial local numbers . That is what these lines are for:</div> <div> </div> <div>exten => _9XXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR>exten => _9XXXXXXXXXX,2,Congestion()<BR>exten => _9XXXXXXXXXX,102,Congestion()</div> <div> </div> <div>Any other options?</div> <div> </div> <div><BR><BR><B><I>Mark Hulber <asterisk-admin@hulber.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Have you tried dialing an 800 number? Does that work? This extension:<BR><BR>exten => _9XXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR><BR>seems to be missing one X since it's only 10 digits long. Your PSTN <BR>probably requires a 1 to be dialed also. On the other hand,<BR><BR>exten => _91[1234567]XXNXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR><BR>you
should probably be matching this extension instead although you <BR>won't be able to match anywhere that has an area code that starts with <BR>an 8 or 9. (905, 916, 914 as a few examples).<BR><BR>MARK.<BR><BR>sdgesa gaeharth wrote:<BR>> I cant seem to get outgoing calls to be placed properly .. No matter <BR>> what I try I get an error from the PSTN company saying that the "call <BR>> can not be completed as dialed" or "you need to dial a one..." The <BR>> asterisk debugging seems to show the correct number being dialed out <BR>> of the zap interface... the "9" is being stripped and there is a "1" <BR>> where it is supposed to be. I am thinking it is a problem between the <BR>> zap interface and the PSTN.<BR>> <BR>> thanks<BR>> <BR>> extensions.conf<BR>> [general]<BR>> static=yes<BR>> writeprotect=no<BR>> autofallthrough=yes<BR>> clearglobalvars=no<BR>> priorityjumping=no<BR>> [globals]<BR>> ATTENDANT=1001<BR>>
OUTBOUNDTRUNK=ZAP/g1<BR>> [extentions]<BR>> exten => _10XX,1,Ringing<BR>> exten => _10XX,2,Dial(SIP/${EXTEN},20)<BR>> exten => _10XX,3,Answer<BR>> exten => _10XX,4,VoiceMail(u${EXTEN}@voicemail <BR>> <mailto:u$%7BEXTEN%7D@voicemail>)<BR>> exten => _10XX,5,Hangup<BR>> [voicemail]<BR>> exten => _910XX,1,Wait(1)<BR>> exten => _910XX,2,VoiceMailMain(${EXTEN:1}@voicemail)<BR>> [local]<BR>> include => extentions<BR>> include => voicemail<BR>> [incoming]<BR>> exten => s,1,Answer<BR>> exten => s,n,Wait(2)<BR>> exten => s,n,Set(TIMEOUT(response)=15)<BR>> exten => s,n,Background(company-intro)<BR>> exten => s,n,WaitExten()<BR>> exten => s,n,Playback(vm-goodbye)<BR>> exten => s,n,Hangup()<BR>> exten => 0,1,Dial(SIP/${ATTENDANT},20)<BR>> exten => 1,1,Directory(voicemail,extentions,f)<BR>> exten => 2,1,Directory(voicemail,extentions)<BR>> exten =>
1234,1,Playback(abandon-all-hope)<BR>> include => extentions<BR>> exten => i,1,Playback(vm-goodbye)<BR>> exten => i,2,Hangup()<BR>> exten => t,1,Playback(vm-goodbye)<BR>> exten => t,2,Hangup()<BR>> [outbound]<BR>> ignorepat => 9<BR>> exten => _9XXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR>> exten => _9XXXXXXXXXX,2,Congestion()<BR>> exten => _9XXXXXXXXXX,102,Congestion()<BR>> exten => _91800NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR>> exten => _91800NXXXXXX,2,Congestion()<BR>> exten => _91800NXXXXXX,102,Congestion()<BR>> exten => _91888NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR>> exten => _91888NXXXXXX,2,Congestion()<BR>> exten => _91888NXXXXXX,102,Congestion()<BR>> exten => _91877NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR>> exten => _91877NXXXXXX,2,Congestion()<BR>> exten => _91877NXXXXXX,102,Congestion()<BR>> exten =>
_91866NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR>> exten => _91866NXXXXXX,2,Congestion()<BR>> exten => _91866NXXXXXX,102,Congestion()<BR>> exten => _91900NXXXXXX,1,Congestion()<BR>> exten => _91976NXXXXXX,1,Congestion()<BR>> exten => _91[1234567]XXNXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})<BR>> exten => _91[1234567]XXNXXXXXX,2,Congestion()<BR>> exten => _91[1234567]XXNXXXXXX,102,Congestion()<BR>> exten => 9911,1,Dial(${OUTBOUNDTRUNK}/911)<BR>> exten => 9411,1,Dial(${OUTBOUNDTRUNK}/411)<BR>> exten => 0,1,Dial(${OUTBOUNDTRUNK}/0)<BR>><BR>> [local-access]<BR>> include => local<BR>> include => outbound<BR>> <BR>> zapata.conf:<BR>> [channels]<BR>> group => 1<BR>> language=en<BR>> context=incoming<BR>> signalling=fxs_ks<BR>> switchtype=national<BR>> usecallerid=yes<BR>> hidecallerid=no<BR>> callwaiting=yes<BR>> callerid => "Dulles Micro, LLC" <703 450
5000><BR>> usecallingpres=yes<BR>> callwaitingcallerid=yes<BR>> threewaycalling=yes<BR>> transfer=yes<BR>> canpark=yes<BR>> cancallforward=yes<BR>> callreturn=yes<BR>> echocancel=yes<BR>> echocancelwhenbridged=yes<BR>> rxgain=0.0<BR>> txgain=0.0<BR>> channel => 1<BR>> <BR>> zaptel.conf:<BR>> fxsks=1,2,3,4<BR>> loadzone = us<BR>> defaultzone=us<BR>> <BR>> <BR>> <BR>><BR>> ------------------------------------------------------------------------<BR>> Brings words and photos together (easily) with<BR>> PhotoMail <BR>> <HTTP: photomail.mail.yahoo.com *http: PMall taglines mail_us us.rd.yahoo.com><BR>> - it's free and works with Yahoo! Mail.<BR>> ------------------------------------------------------------------------<BR>><BR>> _______________________________________________<BR>> --Bandwidth and Colocation provided by Easynews.com --<BR>><BR>> Asterisk-Users mailing list<BR>> To
UNSUBSCRIBE or update options visit:<BR>> http://lists.digium.com/mailman/listinfo/asterisk-users<BR>> <BR>_______________________________________________<BR>--Bandwidth and Colocation provided by Easynews.com --<BR><BR>Asterisk-Users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE><BR></mailto:u$%7BEXTEN%7D@voicemail><p>
                <hr size=1> Yahoo! Mail<br>
<a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=38867/*http://photomail.mail.yahoo.com">Use Photomail</a> to share photos without annoying attachments.