Re: [Asterisk-Users] Increment Variable

2006-02-16 Thread Time Bandit
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 ___ --Bandwidth and Colocation provided by Easynews.com --

[Asterisk-Users] Increment Variable

2006-02-15 Thread Douglas Garstang
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)}) but that converts it to a floating point number (WHY???), so I end up with 1., which later on means I have to perform string manipulation to get rid of the

RE: [Asterisk-Users] Increment Variable

2006-02-15 Thread Michael Collins
Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Increment Variable 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)}) but that converts it to a floating point number (WHY???), so I end up