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
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
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
On 21/7/09 12:08 AM, Joao Gomes Pereira wrote:
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 =
Users Mailing List - Non-Commercial
Discussion
Subject: Re: [asterisk-users] queues load balancing
On 21/7/09 12:08 AM, Joao Gomes Pereira wrote:
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
Danny Nicholas schrieb:
Here is a brute force solution:
[global]
CALLCOUNT=0
exten = 123,1,Ringing
exten = 123,2,Wait(1)
exten = 123,3,Answer
exten = 123,4,Set(CALLCOUNT)=${CALLCOUNT}+1)
...,Set(CALLCOUNT=$[${CALLCOUNT} + 1])
or
...,Set(CALLCOUNT=${MATH(${CALLCOUNT}+1,int)})
exten =