<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">---------- Forwarded message ----------<br>From: "Jay R. Ashworth" <<a href="mailto:jra@baylink.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jra@baylink.com</a>><br>To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users@lists.digium.com</a><br>Date: Sat, 30 Sep 2006 14:35:49 -0400
<br>Subject: [asterisk-users] Dial-9 (was Extension Numbering)<br>
On Sat, Sep 30, 2006 at 01:40:09PM +0100, Gordon Henderson wrote:<br>> Here in the UK, I've installed several small systems without a dial-9 for<br>> an outside line type thing. The outside line prefix is effectively digit
<br>> zero. (which is preserved and dialled on the outgoing zap lines)<br>><br>> There is an exception for 999, and I still provide the 9 service too for<br><br>This reminds me of something that's bothered me for years, and I'm
<br>curious how people deal with it. This is semi-US specific; don't say<br>you weren't warned (or that I'm Americo-centric :-).<br><br>Using 9 as a dialplan prefix for accessing outside dialtone has one<br>*major* problem: 911.
<br><br>You don't *really* want to (and I believe, legally, you can't) require<br>people to dial 9-911. But, this leads you to an alternate problem.<br><br>If you define 911 in your internal dialplan as a cut-through to dial the
<br>local PSAP over a standard local voice line (and here, I'm assuming you<br>have some; VoN 911 is a topic I entirely don't want to get into at the<br>moment), then eventually you're going to have either a) a touchtone<tm>
<br>dial that stutters on it's 1 key, or b) a human who does it, and they're<br>going to dial 9-1-800-555-1212, and find themselves talking the EMS<br>instead of directory assistance... and no one will understand why...<br>
and the EMS people will be mad at *you*.<br><br>I know that this has been a problem for traditional PBXen for years,<br>and the only solution I've ever been able to see is "use 8 as your<br>outdial prefix"... but no one seems to ever do that, even 20 years on.
<br><br>Is this really not a problem?<br><br>Cheers,<br>-- jra<br>--<br>Jay R. Ashworth <a href="mailto:jra@baylink.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jra@baylink.com</a><br>Designer Baylink RFC 2100<br>Ashworth & Associates The Things I Think '87 e24<br>St Petersburg FL USA <a href="http://baylink.pitas.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://baylink.pitas.com</a> +1 727 647 1274<br><br> "That's women for you; you divorce them, and 10 years later,<br> they stop having sex with you." -- Jennifer Crusie; _Fast_Women_
<br><br><br><br><br><br></blockquote></div>As a habit, I do not force users to dial 9 or any other prefix of any kind to access external lines. You can just check the dialled number and prefix with appropriate digits appropriately. See below. NOTE: THIS IS US-CENTRIC!!
but can be easily made to work for any country.<br><br><br>[context for out-bound numbers]<br>;<br>;Check for incoming calls…<br>;<br>; Domestic e.164 US numbers go out unchanged.<br>;<br>exten => _1XXXXXXXXXX,1,Goto(outgoing,${EXTEN},1)
<br>;<br>;<br>; Check for 10 digit NANP
<br>exten => _XXXXXXXXXX,1,SetVar(PREFIX=1)<br>exten => _XXXXXXXXXX,2,Goto(outgoing,${PREFIX}${EXTEN},1)<br><br>; Check for 7 digit NANP<br>; Then add "1" and the location area code<br>;<br>exten => _XXXXXXX,1,SetVar(PREFIX=1925)
<br>exten => _XXXXXXX,2,Goto(outgoing,${PREFIX}${EXTEN},1)<br><br>; Check for emergency numbers<br>;<br>exten => 911,1,Goto(emergency,911,1)<br>;<br>; Check for other special numbers and direct to repective contexts.
<br>;<br>;<br>[outgoing]<br>exten => _X.,1,ChanIsAvail(${PSTNCHANNEL})<br>exten => _X.,2,NoOp(AvailChannel=${AVAILCHAN})<br>exten => _X.,3,Set(DialChannel=${CUT(AVAILCHAN,,1)})
<br>exten => _X.,4,Dial(${DialChannel}/${EXTEN},100)<br>exten => _X.,5,Congestion<br>exten => _X.,105,Congestion<br><br><br>Hope this helps.<br>