Hello all,
I’ve run into a dial plan issue. I have a working asterisk server that can make internal phone calls, outgoing phone calls, and receive incoming phone calls. Problem is that I have it set up so that you must dial ‘9’ before an outbound call. The problem occurs when I have a missed call from a PSTN phone, I click ok to call the person back and it won’t go because it’s calling 555-555-5555 instead of (9)555-555-5555. I would also like to setup 5-digit dialing for internal calls. What’s your suggestion (if you have one) of the best way to
extensions.conf:
[sip]
include => parkedcalls
;----------internal extensions-----------
;extension 0001=phone1
exten => 0001,1,Dial(SIP/phone1,20,tr)
exten => 0001,2,VoiceMail,u0001
;extension 0002=phone2
exten => 0002,1,Dial(SIP/phone2,20,tr)
exten => 0002,3,VoiceMail,u0002
;------------end-------------------------
;-------------Voicemail-------------------
;extension 1001: to receive voicemail
exten => 1001,1,Ringing
exten => 1001,2,Wait(2)
exten => 1001,3,VoicemailMain
;------------------end--------------------
;----------------intercom-----------------
;extension 2400: intercom PAGING over loudspeaker for phones 1-2
exten => 2400,1,Set(VXML_URL=intercom=true)
exten => 2400,2,SIPAddHeader(Call-Info: sip:****.mit.edu.de\;answer-after=0)
exten => 2400,3,Page(SIP/phone1&SIP/phone2&SIP/phone3)
exten => _240Z,1,Set(VXML_URL=intercom=true)
exten => _240Z,n,SIPAddHeader(Call-Info:sip:****.mit.edu.de\;answer-after=0)
exten => _240Z,n,Page(SIP/phone${EXTEN:4})
;-------------------end---------------------
-----------------Outbound----------------
;Outbound Calls (Must Dial '9')
exten => _9.,1,Dial(SIP/SWITCH/${EXTEN},,tr)
;-------------------end-------------------
;----------------PARKED CALLS----------------
exten => 701,1,ParkedCall(701)
;exten => 701,hint,Local/701@parkedcalls
exten => 701,hint,park:701@parkedcalls
exten => 702,1,ParkedCall(702)
;exten => 702,hint,Local/702@parkedcalls
exten => 702,hint,park:702@parkedcalls
;--------------------------------------------