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

RE: [Asterisk-Users] Increment Variable

2006-02-15 Thread Michael Collins
Doug, The TFOT book recommends using expressions instead of dialplan functions: exten = s,1,Set(mainLoop=$[${mainLoop} + 1]) -MC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: Wednesday, February 15, 2006 2:10 PM To: Asterisk