User manual

Release 2.0 Digium, Inc. Page 39
Chapter 3: Configuration
Dial Plan
Open
extensions.conf, which contains a large, complex sample dial
plan. In this step, you will configure a basic dial plan which will allow
you to send and receive calls. Go to the bottom of the file and add the
following lines:
[Internal]
exten => 1000,1,Dial(zap/1,20,t)
exten => 1000,n,Set(CURRENT_EXTEN=${EXTEN})
exten => 1000,n,Goto(s-${DIALSTATUS},1)
exten => 2000,1,Dial(zap/2,20,t)
exten => 2000,n,Set(CURRENT_EXTEN=${EXTEN})
exten => 2000,n,Goto(s-${DIALSTATUS},1)
; Handle Voicemail
exten => s-NOANSWER,1,Voicemail(${CURRENT_EXTEN},u)
exten => s-BUSY,1,Voicemail(${CURRENT_EXTEN},b)
exten => _s-.,1,Goto(s-NOANSWER,1)
exten => 8500,1,VoiceMailMain()
exten => 8501,1,MusicOnHold()
exten => _9.,1,Dial(Zap/g2/www${EXTEN:1})
exten => _9.,2,Congestion