Asterisk - Warning [3177]: Chan_sip.c: 7053 determine_firstline_parts Bad request protoocol

Posted on 2010-01-04
Last Modified: 2013-12-27
I am suddenly seeing the following message in the Asterisk CLI, more and more often:

Asterisk - Warning [3177]: Chan_sip.c: 7053 determine_firstline_parts Bad request protoocol

Does anyone have any insight?  Could it be a sign of an impending crash?

Question by:jkockler
    LVL 32

    Accepted Solution

    Yes. I had this when I upgraded to a newer branch.

    This happens when the header that is received is improperly formatted. In the older versions of asterisk, this was simply ignored; however, in the newer versions it is a giant pain.

    It is NOT a sign of an impending crash. It IS, however, something that will fill up your CLI and cause you to be incredibly distracted.

    To fix it, just remark out the lines of code in the source, and recompile. This is what I did months ago, and haven't had a single problem.
    LVL 32

    Assisted Solution

    Here's the bug report that was submitted way back when.

    Read the very last lines:
    r114890 | oej | 2008-04-30 18:23:17 +0200 (Ons, 30 Apr 2008) | 7 lines

    Don't crash on bad SIP replys.
    Fix created in Huntsville together with Mark M (putnopvut)

    (closes issue 0012363)

    It will not crash on bad sip replys... i.e., it will not crash when determine_first_parts() fails. Just remark it out, and recompile.
    LVL 4

    Author Closing Comment

    Thanks for the info man.  Random red "warnings" that I have never seen on this box, make me nervous.  hahaha.. Thanks again.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    745 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

    18 Experts available now in Live!

    Get 1:1 Help Now