[asterisk-users] undocumented change in expression handling in 1.8 beta
covici at ccs.covici.com
covici at ccs.covici.com
Sun Jul 25 11:16:37 CDT 2010
Paul Belanger <paul.belanger at polybeacon.com> wrote:
> On Sun, Jul 25, 2010 at 11:39 AM, <covici at ccs.covici.com> wrote:
> > OK, the line actually is:
> > exten => s,n(auth),Set(password="") which sets to a null value in 1.6.2
> > but does not in 1.8.
> >
> It's possible something changed, how are you checking if the
> ${password} is null? Post an example dialplan that works in 1.6.2 and
> does not in 1.8.
>
Well, when I executed the line
exten => s,n,SET(password=${password}${digit});add a digit
and when I wanted to test the
variable
exten =>
s,n(pswd_done),GotoIf($[x${password}=x14036]?custom-conf8200,s,1)
I got the following error in 1.8:
[Jul 25 00:36:14] WARNING[7242] ast_expr2.fl: ast_yyerror(): syntax
error: syntax error, unexpected '<token>', expecting $end; Input:
x""14036=x14036
^
After the "" was gone in the set, it works in 1.8, have not tried in
1.6.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici at ccs.covici.com
More information about the asterisk-users
mailing list