[asterisk-dev] MATH function up to 'signed long'

Chris Maciejewski chris at wima.co.uk
Sat Apr 18 05:30:57 CDT 2009


Hi,

Just noticed the maximum result for MATH function is '2147483647', and:

exten => _X.,n,Set(PSTN_TIMEOUT=${MATH(9999999999*1,int)})

produces -2147483648 as a result.

The above applies to 32bit Ubuntu OS.

Might be an idea to add a note to this function description to warn
users about this limitation.

Best regards,

Chris



More information about the asterisk-dev mailing list