/etc/asterisk/includes/inbound.conf
exten => _448451234567,1,Goto(dundi-pass,${EXTEN},1)
/etc/asterisk/includes/dundi-local-ext.conf
exten => _448451234567,1,Goto(inbound_cust,s,1)
/etc/asterisk/includes/queues/inbound_cust.conf
[inbound_cust]
;Music to play to agents waiting
music=cs
;How long to try calling an agent for
timeout=10
;Retry failed agents after
retry=5
;Maximum length of the queue
maxlen=0
;Don’t ring people on the phone
ringinuse=no
;Thank you for waiting, announce position and estimated hold time
announce-frequency=90
;announce-holdtime=yes
;Strategy
strategy=leastrecent
;If an agent doesn’t answer when we call them, auto pause them
autopause=no
;Lets record the call once connected
monitor-type = MixMonitor
monitor-format = wav
;Service level stats
servicelevel = 120
periodic-announce= ivr/cs/thankyou_for_waiting
/etc/asterisk/includes/campaigns.conf
[inbound_cust]
;Answer call
exten => s,1,Answer()
exten => s,2,Wait(2)
;To increase the volume for our agents
exten => s,3,Set(VOLUME(RX)=3)
;exten => s,2,MixMonitor(inbound_cust/${STRFTIME(${EPOCH},%Y-%m-%d)}/${EXTEN}-${STRFTIME(${EPOCH},%Y%m%d-
exten => s,4,Set(MONITOR_FILENAME=inbound_cust/${STRFTIME(${EPOCH},%Y-%m-%d)}/${EXTEN}-${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}-${CALLERID(num)})
exten => s,5,Set(CDR(userfield)=${MONITOR_FILENAME})
exten => s,6,Set(CDR(accountcode)=inbound_cust)
;Bank Holiday
exten => s,7,GotoIfTime(00:00-23:59|*|25|aug?special,s,15)
exten => s,8,NoOp()
exten => s,9,Noop(“Calltimers_inbound_cust”)
exten => s,10,Noop(“Calltimers_inbound_cust”)
exten => s,11,Noop(“Calltimers_inbound_cust”)
exten => s,12,Noop(“Calltimers_inbound_cust”)
;exten => s,13,NoOp()
;Are we in or out of office
;Weekday hours
exten => s,13,GotoIfTime(09:00-19:00|mon-fri||?s,25)
;Saturday hours
exten => s,14,GotoIfTime(10:00-15:00|sat||?s,25)
;Didn’t match… must be out of hours
exten => s,15,Background(ivr/cs/shelby_ivr_ooh,italkfaults)
exten => s,16,Goto(italkfaults,s,1)
exten => s,17,Hangup()
;Snow day
exten => s,20,Background(ivr/cs/closed,italkfaults)
exten => s,21,Goto(italkfaults,s,1)
exten => s,23,Background(ivr/cs/italk_IVR_HappyNY,italkfaults)
exten => s,24,Goto(italkfaults,s,1)
;IVR Welcome
exten => s,25,Background(ivr/cs/shelby_ivr_2013,m)
exten => s,26,Wait(1)
exten => s,27,Queue(inbound_cust,newbeep)
exten => s,30,Background(ivr/cs/shelby_ivr_ooh)
exten => s,31,Goto(italkfaults,s,1)
exten => s,32,Hangup()
exten => s,33,Hangup()
exten => s,33,Hangup()
;Results
;Playagain
exten => 3,1,Goto(s,13)
;press 2 for faults
exten => 2,1,Goto(italkfaults,s,1)
Lastly in /etc/asterisk/includes/internal_dial.conf
[internal]
exten => 777,1,Goto(14_day,s,1)
which then is supposed to go to the 14_day queue, this happens when customer service agent is directly dialled but not when first in customer_services queue, just hear holding music.