Don't want to dial '9' anymore

Hi all,

I have a dialplan that states you must dial ‘9’ before making any outside calls. I want to change this so that asterisk supports just regular ten-digit dialing. instead of dialing 9-555-555-5555 I want to be able to just dial 555-555-5555. Here is what I currently have to dial to the PSTN…

;extensions.conf:

exten => _9.,1,Dial(SIP/SWITCH/${EXTEN},,tr)
;sip.conf:

[SWITCH]
type=peer
host=18.7.7.98
trustrpid=yes
context=sip
insecure=very
dtmfmode=auto
;nat=yes
;qualify=yes

Get rid of the 9_ and replace with something like this:

_NXXNXXXXXX,1,Dial(SIP/SWITCH/${EXTEN},tr)

That’s exactly what I did; however, when I make a call now, it rings and rings and eventually just times out. It never makes it to the PSTN phone.

Is the SWITCH expecting the 9? Your original dialplan is not stripping it, so you may need to add the 9 to the new dialplan.

_NXXNXXXXXX,1,Dial(SIP/SWITCH/9${EXTEN},,tr)

You are a lifesaver. Ahh If it wasn’t for the little things…

It’s very helpful to know this because we are on a wide school campus that has several different prefixes. This helps to implement a 5-digit campus-wide dialplan.

For example:
617-715-**** = campus
617-253-**** = campus
617-258-**** = campus

So to make it easy for campus calls… I simply implement 5-digit dialing like so:

exten => _NXXNXXXXXX,1,Dial(SIP/SWITCH/9${EXTEN},,tr) ;all outbound
exten => _3XXXX,1,Dial(SIP/SWITCH/961725${EXTEN},,tr) ;617-253
exten => _5XXXX,1,Dial(SIP/SWITCH/961771${EXTEN},,tr) ;617-715
exten => _8XXXX,1,Dial(SIP/SWITCH/961725${Exten},,tr) ;617-258