Asterisk@Home Warning Very Frequent in Logs

Posted on 2006-04-30
Last Modified: 2010-04-12

Apr 30 13:08:18 WARNING[21622] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected $end, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN; Input:
1 >

This doesn't seem to affect the stability of the system, but the logs have an abundance of them. Any clue when this would occur?
I see it on both A@H v2.5 and the latest v2.8.
v2.5 is in a production env, v2.8 is at my house. I am of course more concerned with v2.5.

Any clue?

Question by:gigelkent
    LVL 36

    Accepted Solution

    There can be various causes of this error. You really need to be logged into the console (asterisk -r -vvv) and look at the entries just before the error is reported.

    The cause is normally in a GotoIf command where the condition is not understood. Possible causes can be failure to quote the variable correctly so if it contains a special character sich as '/' it breaks or a database read which does not find the variable so one side of the condition is empty.

    For example have a look at :-
    LVL 19

    Assisted Solution

    I have seen an error like that when using a GotoIf to test the value of a channel variable and the channel variable was uninitialised (i.e. empty). Asterisk is not very good at handling blank or null values and you have to take extra care how you construct the code in places where blank/null values might occur.

    Hope this helps you identify your problem, but it is really only reiterating what grblades said in his comment so I'm not trying to poach his points - just thought it might help you close this question.
    LVL 36

    Expert Comment

    When asterisk changed from version 1.0 to version 1.2 the way you perform database lookups changed. The result of this is that where as before if a database lookup failed it generated an error now you just tend to get a null value returned. The authors of AMP or the @home developers haven't rewritten all of their code to work properly with asterisk 1.2 and hence you are seeing these errors. As you say it does not affect anything working which is probably why they have not got around to fix it yet.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    In my office we had 10 Cisco 7940G IP phones that were useless as they were showing PROTOCOL APPLICATION INVALID when started. I searched through Google and worked for a week continuously on those phones, and finally got them working. This is a di…
    Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn ( because of bad weather. This article was c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now