[Asterisk-Users] Increment Variable

Time Bandit timebandit001 at gmail.com
Thu Feb 16 18:20:34 MST 2006


> What's the best way to increment a numeric variable in the dial plan?
> I tried this...
>
> exten => s,1,Set(mainLoop=${MATH(${mainLoop}+1)})
exten => s,1,Set(mainLoop=$[${mainLoop} + 1])

hth



More information about the asterisk-users mailing list