[default] include => local-extens ;exten => s,1,Dial(SIP/6001) ;exten => 9193233690,1,Dial(SIP/6001) exten => s,1,FaxDetect(4000) exten => s,2,Zapateller(nocallerid|answer) exten => s,3,Dial(SIP/6001,10) ; Ring the interface, 10 seconds maximum exten => s,4,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER) exten => fax,1,SipT38SwitchOver() exten => fax,2,Dial(SIP/5000) ; Dial the extension on which the fax machine exists ;exten => fax,1,Dial(SIP/5000,10) ; Ring the interface, 10 seconds maximum ;exten => s-NOANSWER,1,VoiceMail(u${ARG1}) ; If unavailable, send to voicemail w/ unavail announce exten => s-NOANSWER,1,VoiceMail(u6001) ; If unavailable, send to voicemail w/ unavail announce exten => s-NOANSWER,2,Goto(default,s,1) ; If they press #, return to start ;exten => s-BUSY,1,VoiceMail(b${ARG1}) ; If busy, send to voicemail w/ busy announce exten => s-BUSY,1,VoiceMail(b6001) ; If busy, send to voicemail w/ busy announce exten => s-BUSY,2,Goto(default,s,1) ; If they press #, return to start exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer ;exten => a,1,VoiceMailMain(${ARG1}) ; If they press *, send the user into VoicemailMain exten => a,1,VoiceMailMain(6001) ; If they press *, send the user into VoicemailMain exten => 8600,1,VoiceMailMain(6001) ; If they press 8600, send the user into VoicemailMain [from-sip] include => local-extens exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@sip_proxy-out) [local-extens] exten => 6000,1,Zapateller(nocallerid|answer) exten => 6000,n,SayPhonetic("Hello Colin") exten => 6000,n,Playback(vm-goodbye) exten => 6000,n,Hangup() exten => 5000,1,Dial(SIP/5000,20,rt) ; permit transfer exten => 8600,1,VoiceMailMain(6001) ;If they press 8600, send the user into VoicemailMain ; Local extensions ; I think hints are related to follow-me ;exten => 6001,hint,SIP/6001,Colin's Office ; Channel hints for presence exten => 6001,1,Dial(SIP/6001,20,rt) ; permit transfer ;exten => 6001,n(dial),Dial(${HINT},20,rtT) ; Use hint as listed exten => 6001,n,VoiceMail(u6001) ; VoiceMail (unavailable) exten => 6001,s+1,Hangup ; s+1, same as n ;exten => 6001,dial+101,VoiceMail(b6001) ; VoiceMail (busy) ;