[asterisk-users] queues load balancing

Joao Gomes Pereira gomespereira at startel.pt
Mon Jul 20 07:08:04 CDT 2009


Thanks for the idea.
I will try it this way:

exten => 123,1,Ringing
exten => 123,2,Wait(1)
exten => 123,3,Answer
exten => 123,4,Random(33:123,10)
exten => 123,5,Queue(queue_1)
exten => 123,6,Hangup

exten => 123,10,Queue(queue_2)
exten => 123,11,Hangup


Joao Pereira

-- 
StarTel - A Rede Livre
Joao Gomes Pereira
www.startel.pt
+351 304500650
sip: gomespereira at startel.pt





Geraint Lee wrote:
> Take a look at:
> http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Random
>
> 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.
>
> Cheers
>
> 2009/7/20 Joao Gomes Pereira <gomespereira at startel.pt 
> <mailto:gomespereira at startel.pt>>
>
>     Hello
>     I have 2 queues (queue_1 and queue_2 ) in my Asterisk, and I want to
>     send 2/3 of the calls to queue_1 and 1/3 of the calls to queue_2
>     How can I do that load balancing in extensions.conf?
>
>     I have something like this:
>     exten => 123,1,Ringing
>     exten => 123,2,Wait(1)
>     exten => 123,3,Answer
>
>     ;  2 in 3 calls go to queue_1
>     exten => 123,x,Queue(queue_1)
>
>     ; 1 in 3 calls go to queue_2
>     exten => 123,x,Queue(queue_2)
>
>     But how can I configure this call distribution?
>     Thanks
>     Regards
>     Joao Pereira
>
>     --
>     StarTel - A Rede Livre
>     Joao Gomes Pereira
>     www.startel.pt <http://www.startel.pt>
>     +351 304500650
>     sip: gomespereira at startel.pt <mailto: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
>
>


-- 
StarTel - A Rede Livre
Joao Gomes Pereira
www.startel.pt
+351 304500650
sip: gomespereira at startel.pt




More information about the asterisk-users mailing list