[asterisk-users] How to make the sum of a ${VARIABLE} + 1 ??
Zeeshan Zakaria
zishanov at gmail.com
Wed Nov 3 10:57:58 CDT 2010
Its good to know the MATH function because it can do much more and also deal
with floating point numbers. However in your case a simple addition would be
suffice as other posters posted, or try Danny's GotoIf if it fits your
scenario.
Set(vgLabel=vg${MATH(${vg}+1,i)})
Zeeshan A Zakaria
--
www.ilovetovoip.com
www.pbxforall.com
On 2010-11-03 9:39 AM, "Philipp von Klitzing" <
klitzing at pool.informatik.rwth-aachen.de> wrote:
> exten => s,n,Set(vgLabel=vg(${number}+1))
> exten => s,n,GoTo(${vgLabel})
>
> But in stead of vgL...
Use the MATH function.
Philipp
--
_____________________________________________________________________
-- Bandwidth and Colocat...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101103/fddc39f6/attachment.htm
More information about the asterisk-users
mailing list