A sample Dialplan for an accounting office

Asterisk Programming | Communications

Hey I just wanted to share with everyone the first dialplan that i created for a small 2 person accounting office. Have fund


[aa_1]
exten => 5,1,Playtones(!980/230,0)
exten => 5,2,AGI(festival-script.pl|Take 8 East then take the 67 north to wintergardens south exit.)
exten => 5,3,AGI(festival-script.pl|Travel approximatly 1 point 5 miles to. eight. eight. zero. seven. wintergardens boulevard.)
exten => 5,4,AGI(festival-script.pl|You will see us on the left hand side. The closest cross street is Garde-nia.)
exten => 5,5,Wait(2)
exten => 5,6,Background(to-hear-msg-again)
exten => 5,7,Background(press)
exten => 5,8,Background(digits/5)
exten => 5,9,Waitexten(5)
exten => 5,10,Goto(s-NOANSWER,1)

exten => 0,1,Voicemail(u503)
exten => 0,2,Hangup()

;include => aa_1-custom
exten => fax,1,Goto(ext-fax,in_fax,1) ;
exten => h,1,Hangup() ;
exten => i,1,Playback(invalid) ;
exten => i,2,Goto(s,4) ;
include => ext-local
include => app-messagecenter
include => app-directory
exten => s,1,GotoIf($[${DIALSTATUS} = ANSWER]?4) ;
exten => s,2, Answer() ;
exten => s,3, Wait(1) ;
exten => s,4,SetVar(DIR-CONTEXT=default) ;
exten => s,5,Background(custom/aa_1) ; thanks for calling leslie and associates, stay on the line we will connect your call
exten => s,6,Dial(SIP/501&SIP/502&SIP/503,20,mg)
exten => s,7,Goto(s-${DIALSTATUS},1)

exten => s-NOANSWER,1,Playback(nbdy-avail-to-take-call)
exten => s-NOANSWER,2,Playback(to-dial-by-name-press)
exten => s-NOANSWER,3,Playback(pound)
exten => s-NOANSWER,4,Playback(driving-directions)
exten => s-NOANSWER,5,Playback(digits/5)
exten => s-NOANSWER,6,ResponseTimeout(7)
exten => s-NOANSWER,7,Waitexten(4)
exten => s-NOANSWER,8,Voicemail(u503)

exten => s-ANSWER,1,Hangup()