rendered paste body; 611 - Repair Service / TechSupport
exten => 611,1,Macro(user-callerid,)
exten => 611,n,Answer
exten => 611,n,GotoIfTime(*|*|1|jan?611|HOLIDAY)
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&our-business-hours-are&office-hours)
exten => 611,n,Voicemail(u611)
exten => 611,n,Hangup
here is where I want to check caller id and match the database. grab the account number and convert it to caller id .
exten => 611,n(START),GotoIfTime(22:00-08:00|*|*|*?611|CLOSED)
exten => 611,n,Set(TIMEOUT(digit)=3)
exten => 611,n,Set(TIMEOUT(response)=10)
exten => 611,n,SayDigits(611)
exten => 611,n,Playback(repair&and&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),Set(CALLERID(name)=${CALLERIDNAME})
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(102|t|||300)
exten => 611,n(VM),Voicemail(u611)
exten => 611,n,Hangup
exten => 611,n(NIGHT),Queue(104|t|||300)
exten => 611,n,Goto(611,VM)