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 -- _______________________________________________ -- 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