[Asterisk-Users] Re: Expressions - solved

John Todd jtodd at loligo.com
Thu Dec 18 07:43:49 MST 2003


At 1:16 PM +0100 12/18/03, Tais M. Hansen wrote:
>On Thursday 18 December 2003 13:08, Tais M. Hansen wrote:
>>  I'm having a problem with the following expression examples.
>>  exten => s,1,NoOp($[$[${value} >= 10] & $[${value} < 18]])
>  > exten => s,1,GotoIf($[$[${value} >= 10] & $[${value} < 18]]?3)
>>  ${value} is 13 in both examples above. First extension evaluates to 1 while
>>  second evaluates to 0 even though it's the same expression used in both
>>  examples. Am I doing something wrong?
>
>Answer() apparently changes channels and thus clears variables set prior to
>the Answer() call. :(
>
>... Setting variables in spooled calls becomes even more useless.
>
>- --
>Regards,
>Tais M. Hansen
>ComX Networks
>Tel: +45-70257474
>Fax: +45-70257374


If Answer() clears variables, then this is a bug, where "bug" is 
defined as "behavior that occurs that a reasonable user or developer 
would not expect given the inputs to the process."

If you do not use Answer() explicitly, are the values still cleared?

Can you please document and put in the bug tracker.

JT




More information about the asterisk-users mailing list