[asterisk-users] MATH

Matt Riddell lists at venturevoip.com
Sun Jan 31 17:10:36 CST 2010


On 31/01/10 6:27 PM, Thomas Perron wrote:
> what is wrong with this please:
>
> ;exten =>  4,1,WaitExten(3)
> exten =>  4,1,Set(TOTAL=${MATH(${TOTAL}+500,int)})
> exten =>  4,n,WaitExten(3)
> exten =>  2,1,Set(TOTAL=${MATH(${TOTAL}+200,int)})
> exten =>  2,n,Waitexten(3)
> exten =>  3,1,Set(TOTAL=${MATH(${TOTAL}+300,int)})
> exten =>  3,n,WaitExten(3)
> exten =>  9,1,SayNumber(${TOTAL})

Heh, you might need to say what	you're expecting and what you're getting :D

Straight off, all I can see is that 2 does 200, 3 does 300 and 4 does 500.

-- 
Cheers,

Matt Riddell
Managing Director
_______________________________________________

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/exchange.php (Full ITSP Solution)
http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)



More information about the asterisk-users mailing list