[Home]

Summary:ASTERISK-05111: asterisk expressions doesn't work on os x
Reporter:Roy Sigurd Karlsbakk (rkarlsba)Labels:
Date Opened:2005-09-19 07:15:26Date Closed:2005-09-19 13:47:47
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) make-osx.log.gz
Description:asterisk expressions like $[ 1 + 2 ] doesn't work on OS X and only returns 0.

exten => s,1,NoOp($[ 1 + 1 ])

returns

   -- Executing NoOp("SIP/1234-79d1", "0") in new stack


****** ADDITIONAL INFORMATION ******

Testing with the same CVS version on linux works well
Comments:By: Roy Sigurd Karlsbakk (rkarlsba) 2005-09-19 07:45:57

that's the make &> log makelog, in case it could be important

By: Russell Bryant (russell) 2005-09-19 08:33:52

I have confirmed this issue on my powerbook using a NoOp as shown in the original report.

However, when I build testexpr2 (make testexpr2), the expressions are evaluated correctly.

$ ./testexpr2 "$[3 + 2]"
=====5======
$ ./testexpr2 "$[1 > 0]"
=====1======
$ ./testexpr2 "$[0 > 1]"
=====0======



By: Russell Bryant (russell) 2005-09-19 13:44:02

I'm upgrading this to major, since I am not aware of any workaround for this issue.

By: Russell Bryant (russell) 2005-09-19 13:47:02

This appears to be the same issue as ASTERISK-5093, so please post any updates or realted files there.  Thanks!