[asterisk-users] MATH

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Jan 31 09:50:08 CST 2010


On Sun, Jan 31, 2010 at 10:37:29AM -0500, Thomas Perron wrote:
> hi
> i don't claim to be a star at this but there must be some obvious part missing;
> my dial plan is below.  out put from cli follows.
> 
> exten => 3011,1,Answer()
> exten => 3011,n,Set(TOTAL=0)
> exten => 3011,n,Set(TOTAL=${Math(${TOTAL}+300,int)})
> exten => 3011,n,WaitExten(3)
> exten => 988,1,SayNumber(${TOTAL})
> 
> [Jan 31 10:21:35] ERROR[1318]: pbx.c:2770 ast_func_read: Function Math
> not registered

Function names are CaSe SenSitive, and are normally ALL CAPS. You should
use 'MATH' instead of 'Math'.

/me is done shouting for today, hopefully.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list