rendered paste body; 611 - Repair Service / TechSupport
exten => 611,1,Answer
exten => 611,n,GotoIf($["${CONTEXT}"="from-internal"]?USERCID:SETCID)
exten => 611,n(USERCID),Macro(user-callerid,)
exten => 611,n(SETCID),Set(CALLERID(name)=${CALLERIDNAME})
exten => 611,n,GotoIfTime(*|*|1|jan?611holiday)
exten => 611,n,GotoIfTime(*|*|4|jul?611,holiday)
exten => 611,n,GotoIfTime(*|*|11|nov?611,holiday)
exten => 611,n,GotoIfTime(*|*|24|nov?611,holiday)
exten => 611,n,GotoIfTime(*|*|25|dec?611,holiday)
exten => 611,n,Goto(611,start)
exten => 611,n(holiday),Playback(office-closed-holiday) ; play the office we are closed message
exten => 611,n,Playback(office-hours) ; play the open hours message
exten => 611,n,Hangup
exten => 611,n(closed),Playback(office-closed&office-hours)
exten => 611,n,Voicemail(u611)
exten => 611,n,Hangup
exten => 611,n(start),Set(TIMEOUT(digit)=3)
exten => 611,n,Set(TIMEOUT(response)=10)
exten => 611,n,Playback(611-repair&technical-support)
exten => 611,n,Playback(for-quality-purposes&this-call-may-be&recorded)
exten => 611,n(id),Playback(pls-enter-account)
exten => 611,n,Read(acct,then-press-pound,)
exten => 611,n,SayDigits(${acct})
exten => 611,n,Background(if-correct-press)
exten => 611,n,SayDigits(1)
exten => 611,n,Background(if-incorrect-press)
exten => 611,n,SayDigits(2)
exten => 611,n,Read(res,then-press-pound,)
exten => 611,n,GotoIf($["${res}"="1"]?acct:id)
exten => 611,n(acct),Playback,(pls-wait-connect-call)
exten => 611,n,Set(CALLERID(number)=${acct})
exten => 611,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${TIMESTAMP}-${UNIQUEID})
exten => 611,n,SetMusicOnHold(default)
exten => 611,n,GotoIfTime(08:00-17:00|mon-fri|*|*?611,day)
exten => 611,n,GotoIfTime(17:00-22:00|mon-fri|*|*?611,night)
exten => 611,n,GotoIfTime(09:00-13:00|sat|*|*?611,night)
exten => 611,n,Goto(611,closed)
exten => 611,n(day),Queue(103|t|||300)
exten => 611,n,Macro(exten-vm,,1000)
exten => 611,n,Goto(Voicemail|u611)
exten => 611,n,Hangup
exten => 611,n(night),Queue(104|t|||300)
exten => 611,n,Goto(Voicemail|u611)
exten => 611,n,Hangup