BreadCrumbs: Asterisk Queue

Asterisk Queue

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:28, 4 December 2006 (edit)
Ljackson (Talk | contribs)

← Previous diff
Revision as of 23:30, 4 December 2006 (edit)
Ljackson (Talk | contribs)

Next diff →
Line 1: Line 1:
[macro-agent-add] [macro-agent-add]
 +
 +<pre>
exten => s,1,Wait(1) exten => s,1,Wait(1)
exten => s,2,Macro(user-callerid) exten => s,2,Macro(user-callerid)
Line 14: Line 16:
exten => s,109,Playback(agent-loggedoff) exten => s,109,Playback(agent-loggedoff)
exten => s,110,Hangup() exten => s,110,Hangup()
 +</pre>

Revision as of 23:30, 4 December 2006

[macro-agent-add]

exten => s,1,Wait(1)
exten => s,2,Macro(user-callerid)
exten => s,3,Set(CALLBACKNUM=${CALLERID(number)})
exten => s,4,GotoIf($["${CALLBACKNUM}" = ""]?2))        ; if still no number, start over
exten => s,5,AddQueueMember(${ARG1}|Local/${CALLBACKNUM}@from-internal/n)       ; using chan_local allows us to have agents over trunks
exten => s,6,UserEvent(Agentlogin|Agent: ${CALLBACKNUM})
exten => s,7,Wait(1)
exten => s,8,Playback(agent-loginok)
exten => s,9,Hangup()
exten => s,106,RemoveQueueMember(${ARG1}|Local/${CALLBACKNUM}@from-internal/n)
exten => s,107,UserEvent(RefreshQueue)
exten => s,108,Wait(1)
exten => s,109,Playback(agent-loggedoff)
exten => s,110,Hangup()
Personal tools