You can try something like this: exten => _X.,1,SET(condition=${RAND(1,2)}) exten => _X.,2,GotoIf($[${condition} = '1']?1:3) exten => _X.,3,SET(Result is 2)
Regards, Ricardo Carvalho.
_______________________________________________ --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