[asterisk-users] 10.9.0-rc1 : Help with GoSubIf Parsing

Ira ira at extrasensory.com
Thu Oct 4 22:16:18 CDT 2012


At 07:02 PM 10/4/2012, you wrote:
>same=n,GoSubIf($[${CALLERID(num)} = 2024324321]?other,1(${thisexten}):)
>
>WARNING[11356]: ast_expr2.fl:468 ast_yyerror: ast_yyerror():  syntax 
>error: syntax error, unexpected '=', expecting $end; Input:
>  = 2024324321

Try :

>same=n,GoSubIf($["${CALLERID(num)}" = "2024324321"]?other,1(${thisexten}):)

The quotes make sure it doesn't fail on an empty callerid.

Ira 




More information about the asterisk-users mailing list