[asterisk-users] queues load balancing

Matt Riddell lists at venturevoip.com
Mon Jul 20 07:37:19 CDT 2009


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 =>  123,11,Hangup

Bear in mind that the Random application has been deprecated in favour 
of the RANDOM function:

asterisk -rx 'show application random'

   -= Info about application 'Random' =-

[Synopsis]
Conditionally branches, based upon a probability

[Description]
Random([probability]:[[context|]extension|]priority)
   probability := INTEGER in the range 1 to 100
DEPRECATED: Use GotoIf($[${RAND(1,100)} > <number>]?<label>)

-- 
Cheers,

Matt Riddell
Director
_______________________________________________

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)
http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)



More information about the asterisk-users mailing list