[Freeswitch-users] Doing basic arithmetic in the xml dialplan without a language

Vik Killa vipkilla at gmail.com
Fri Apr 13 15:52:34 MSD 2012


This is an example of adding 1 to the 'inc' variable. If 'inc' is not
defined, it will become 1. If it is 1, it will become 2, etc...
<action application="set" data="inc=${expr(${inc}+1)}"/>

On Fri, Apr 13, 2012 at 7:24 AM, Herman Griffin
<herman.griffin at gmail.com> wrote:
> Is there a way to do basic arithmetic within the dialplan without running a
> mod_language script. For instance, to increment a counter on every call. Or
> to use the modula or division.
>
> Herman
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list