All pastes #508806 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-25 04:37 UTC
rendered paste body
;--------------------------------------------------
;Basic Queue macro Sales / Billing / Technical Support
;--------------------------------------------------
[basic-queues]
exten = 100 Goto(macro-basic-queues,s,sales)
exten = 101 Goto(macro-basic-queues,s,billing)
exten = 102 Goto(macro-basic-queues,s,techsuport)
;
[macro-basic-queues] 
;Sales/billing/
exten = s,1(sales),Playback(sales&for-quality-purposes&this-call-may-be-monitored-or-recorded)
exten = s,n,Goto(s,answer)
exten = s,n(billing),Playback(billing&for-quality-purposes&this-call-may-be-monitored-or-recorded)
exten = s,n,Goto(s,answer)
exten = s,n(techsupport,Playback(technical-support&for-quality-purposes&this-call-may-be-monitored-or-recorded)
exten = s,n(answer),GotoIf($["${CONTEXT}"="from-internal"]?USERCID:SETCID)
exten = s,n(USERCID),Macro(user-callerid,)
exten = s,n(SETCID),Set(CALLERID(name)=${CALLERIDNAME})
exten = s,n(ID),Playback(pls-enter-account)
exten = s,n,Read(acct,then-press-pound)
exten = s,n,SayDigits(${acct})
exten = s,n,Background(if-this-is-correct-press)
exten = s,n,SayDigits(1)
exten = s,n,Background(if-this-is-incorrect-press)
exten = s,n,SayDigits(2)
exten = s,n,Read(res,then-press-pound,)
exten = s,n,GotoIf($["${res}"="1"]?ACCT:ID)
exten = s,n(ACCT),Set(CALLERID(number)=${acct})
exten = s,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/qs-${TIMESTAMP}-${UNIQUEID})
exten = s,n,Queue(${EXTEN}|t|||300)
exten = s,n,Voicemail(u${EXTEN})