Hi Gang,

             I'm testing 1.8.0 on one of my machines and this snippet
"chokes" on line 7 (works fine with 1.4.30)

[tb-account-balance]

exten => s,1,Set(BALCOUNT=0)

exten => s,n,NoOp(Verbose(acct ${digitacc} pwd ${digitpwd} ))

exten => s,n(runagi),Set(TEST_RETURN="NONE")

exten =>
s,n,AGI(acctbal.agi,${ABA},${digitacc},${digittype},${digitport},${CHANNEL(l
anguage)},${outtype})

exten => s,n,NoOp(Verbose(bal AGI RETURNED ${TEST_RETURN} ))

exten => s,n,Set(BALCOUNT=$[${BALCOUNT} + 1])

exten => s,n,Gotoif($[${BALCOUNT} > 3]?tb-account-balance,s,reset_bc)

exten => s,n,Gotoif($["${TEST_RETURN}" = "OK"]?tb-account-balance,s,ok)

exten => s,n,Gotoif($["${TEST_RETURN}" = "NONE"]?tbstart,s,play-main)

exten => s,n,Gotoif($["${TEST_RETURN}" = "INVACCT"]?tbstart,s,readacct)

exten => s,n(invacct),Playback(${invacct})

exten => s,n,Goto(tb-account-balance,s,runagi)

exten => s,n(ok),Set(BALCOUNT=0)

 

-- Executing [...@tb-account-balance:7] GotoIf("SIP/134-00000000",
"0?tb-account-balance,s,reset_bc") in new stack

[Nov  3 14:23:02] WARNING[20937]: ast_expr2.fl:468 ast_yyerror:
ast_yyerror():  syntax error: syntax error, unexpected '<token>', expecting
$end; Input:

""NONE"" = "OK"

  ^

[Nov  3 14:23:02] WARNING[20937]: ast_expr2.fl:472 ast_yyerror: If you have
questions, please refer to doc/tex/channelvariables.tex.

*       Executing [...@tb-account-balance:8] GotoIf("SIP/134-00000000",
"""?tb-account-balance,s,ok") in new stack

 

Any ideas?

 

TIA

Danny Nicholas

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to