[asterisk-users] MATH
Thomas Perron
thomas.perron at gmail.com
Sun Jan 31 12:24:00 CST 2010
does dtmf any any variable that i can capture and use w/ some logic
like in the case of a gotoif
so, if caller enters a certain number then gotoif matches XX
otherwise go to YY.
On Sun, Jan 31, 2010 at 10:58 AM, Thomas Perron <thomas.perron at gmail.com> wrote:
> ok.
> that worked
> thanks!!
>
>
> On Sun, Jan 31, 2010 at 10:50 AM, Tzafrir Cohen
> <tzafrir.cohen at xorcom.com> wrote:
>> 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
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
More information about the asterisk-users
mailing list