[asterisk-users] dinamic queue distribution
    Danny Nicholas 
    danny at debsinc.com
       
    Thu Jul 23 13:01:40 CDT 2009
    
    
  
You could do an AGI to get the queue information via AMI queue status, then
return variables to the dialplan and select the queue dynamically based on
that information.
[global]
CALLCOUNT=0
- exten => s,1,answer
- exten => s,2,AGI(questat.agi)
- exten => s,3,set(GLOBAL(CALLCOUNT)=[1 + ${CALLCOUNT}]))
- exten => s,4(check),Gotoif($["${QUEUE1}" > "${CALLCOUNT}"]?queue2)
- exten => s,5,queue(1)
- exten => s,6,hangup
- exten => s,7(queue2),queue(2)
- exten => s,8,hangup
- exten => s,9(reset),Set(GLOBAL(CALLCOUNT)=0)
- exten => s,10,goto(default|s|check)
This needs some cleanup, but hopefully conveys the general idea.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joao Gomes
Pereira
Sent: Thursday, July 23, 2009 11:25 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] dinamic queue distribution
Hello
I have 2 queues and I would like to send calls to queue_1 and queue_2 
dynamically.
For example:
If I have 10 agents logged (2 in queue_1 and 8 in queue_2)
I want 20% of the calls  to be sent to queue_1 and 80% to queue_2
Is this possible?
Is there a way I can see how many logged (or available) agents I have in 
a queue before sending a call?
Thanks
Regards
Joao Pereira
-- 
StarTel - A Rede Livre
Joao Gomes Pereira
www.startel.pt
+351 304500650
sip: gomespereira at startel.pt
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
    
    
More information about the asterisk-users
mailing list