Take a look at:<br><a href="http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Random">http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Random</a><br><br>You should be able to do what you want with this, it obviously won't take in to account the actual amount of people still in the queue (for example if someone hangs up while on hold). I'm sure there'd be a way of integrating this in to it using some different functions, but for a quick fix random will do just fine.<br>
<br>Cheers<br><br><div class="gmail_quote">2009/7/20 Joao Gomes Pereira <span dir="ltr"><<a href="mailto:gomespereira@startel.pt">gomespereira@startel.pt</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello<br>
I have 2 queues (queue_1 and queue_2 ) in my Asterisk, and I want to<br>
send 2/3 of the calls to queue_1 and 1/3 of the calls to queue_2<br>
How can I do that load balancing in extensions.conf?<br>
<br>
I have something like this:<br>
exten => 123,1,Ringing<br>
exten => 123,2,Wait(1)<br>
exten => 123,3,Answer<br>
<br>
; 2 in 3 calls go to queue_1<br>
exten => 123,x,Queue(queue_1)<br>
<br>
; 1 in 3 calls go to queue_2<br>
exten => 123,x,Queue(queue_2)<br>
<br>
But how can I configure this call distribution?<br>
Thanks<br>
Regards<br>
Joao Pereira<br>
<br>
--<br>
StarTel - A Rede Livre<br>
Joao Gomes Pereira<br>
<a href="http://www.startel.pt" target="_blank">www.startel.pt</a><br>
+351 304500650<br>
sip: <a href="mailto:gomespereira@startel.pt">gomespereira@startel.pt</a><br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>