[Freeswitch-users] Hello , about calculate numbers

Michael Jerris mike at jerris.com
Tue Jan 12 15:35:20 PST 2010


Remember you can't do conditions on these vars being set unless you transfer back into the dialplan as these actions are not run immediately, but rather after dialplan parse, unless you use http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions

Mie

On Jan 12, 2010, at 12:39 PM, Sergey Okhapkin wrote:

> <action application="set" data="var=${expr(${var}+1)}"/>
> 
> On Tuesday 12 January 2010, Chia-Yen Wu wrote:
>> Hello everyone,
>> Is there anyway to calculate number in dialplan.xml?
>> 
>> like example:
>> <action application="set" data="var=1"/>
>> and with an action , I can do : var=var+1
>> 
>> I have tried mod_expr, but failed to catch the variable, like below:
>> <action application="set" data="var=${expr($var+1)}"/>
> 





More information about the FreeSWITCH-users mailing list