[Asterisk-Users] Re: Gogoif with variables acting funny?
Stefan Tichy
asterisk at pi4tel.de
Mon Jul 12 09:48:48 MST 2004
On Mon, Jul 12, 2004 at 10:51:24AM -0400, Steve Woolley wrote:
> exten => t,1,SetVar(counter=[${counter}+1])
> exten => t,2,Gotoif([${counter}<3]?s,7:h,1)
You need $2
Example:
SetVar(lala=$[1 + 2]);
GotoIf($[${CALLERIDNUM} = 303]?3:2)
http://www.voip-info.org/wiki-Asterisk+Expressions
http://www.voip-info.org/wiki-Asterisk+cmd+GotoIf
--
Stefan Tichy <asterisk at pi4tel.de>
More information about the asterisk-users
mailing list