[asterisk-users] queues load balancing

Philipp Kempgen philipp.kempgen at amooma.de
Mon Jul 20 08:24:10 CDT 2009


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 =>  123,5,Gotoif($["$(CALLCOUNT}" = "3"]?queue2)
>> exten =>  123,6,Queue(queue_1)
>> exten =>  123,7,Hangup
>> exten =>  123,8(queue2),Set(CALLCOUNT=0)
>> exten =>  123,9,Queue(queue_2)
>> exten =>  123,10,Hangup


    Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
-- 



More information about the asterisk-users mailing list