QueueMetrics > Outbound and QueueMetrics
Outbound with Asterisk 1.6
viniciusfontes:
Hello. I'm confused about the right way of setting up outbound queues on Asterisk 1.6. As explained on this topic (http://forum.queuemetrics.com/index.php?topic=728.0), we should not use agents.conf at all, relying only on AddQueueMember and so on. But on the topic about setting up outbound queues (http://forum.queuemetrics.com/index.php?topic=261.0), this context depends on the agents functionality:
[queuedial]
; this piece of dialplan is just a calling hook into the [qm-queuedial] context that actually does the
; outbound dialing - replace as needed - just fill in the same variables.
exten => _XXX.,1,Set(QDIALER_QUEUE=q-${EXTEN:0:3})
exten => _XXX.,n,Set(QDIALER_NUMBER=${EXTEN:3})
exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${CALLERID(num)})
exten => _XXX.,n,Set(QDIALER_CHANNEL=SIP/${QDIALER_NUMBER})
exten => _XXX.,n,Set(QueueName=${QDIALER_QUEUE})
exten => _XXX.,n,MixMonitor(Q-${QDIALER_QUEUE}-${UNIQUEID}.WAV|b|)
exten => _XXX.,n,Goto(qm-queuedial,s,1)
Is there a way to use outbound queues on Asterisk 1.6 and at the same time use callback agents?
QueueMetrics:
Don't worry - that is just the way this is logged... so it does not actually use a chan agent in Asterisk.
viniciusfontes:
So far so good. But how could I ensure that only logged on "agents" can dial out?
QueueMetrics:
You should check that in the dialplan - IIRC there is a function to tell wjhether an agent is logged on or not.
viniciusfontes:
Yes there is, but as far as I can tell, it doesn't support the xagents way defined for Asterisk 1.6:
[queuedial-loggedon]
; This piece of dialplan will let only logged on agents dial out
exten => _XXX.,1,Set(QDIALER_QUEUE=q-${EXTEN:0:3})
exten => _XXX.,n,Set(QDIALER_NUMBER=${EXTEN:3})
exten => _XXX.,n,Set(QDIALER_AGENT=Agent/${AGENTBYCALLERID_${CALLERID(num)}})
exten => _XXX.,n,Set(QDIALER_CHANNEL=SIP/${QDIALER_NUMBER})
exten => _XXX.,n,Set(QueueName=${QDIALER_QUEUE})
exten => _XXX.,n,MixMonitor(Q-${QDIALER_QUEUE}-${UNIQUEID}.WAV,b,)
exten => _XXX.,n,GotoIf($[${LEN(${QDIALER_AGENT})} > 6]?qm-queuedial,s,1)
exten => _XXX.,n,NoOp,Extension ${CALLERID(num)} is not logged on as agent.
exten => _XXX.,n,Playback(agent-loggedoff)
exten => _XXX.,n,Congestion
Navigation
[0] Message Index
[#] Next page
Go to full version