<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Mark,<br>
      <br>
      Consider opening a ticket on github.<br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2021 online
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
    <div class="moz-cite-prefix">On 5/27/21 2:57 PM, Mark Allen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADaqb1s-JZWOSkT9D0OJ0Eg8xG3t2Dm_SxwKSNTj+3H0yDQ11g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">This seems to link to a past thread where
        error_route is not triggering if the first line is malformed.
        Unfortunately, there is no resolution to this past thread - link
        here: <a
          href="https://opensips.org/pipermail/users/2019-February/040605.html"
          moz-do-not-send="true">https://opensips.org/pipermail/users/2019-February/040605.html</a></div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, 27 May 2021 at 11:56,
          Mark Allen <<a href="mailto:mark@allenclan.co.uk"
            moz-do-not-send="true">mark@allenclan.co.uk</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div><br>
            </div>
            <div>In my script, I have an error_route...</div>
            <div><br>
            </div>
            <div>error_route {<br>
                 xlog("--- error route class=$(err.class)
              level=$(err.level)<br>
                      info=$(<a href="http://err.info" target="_blank"
                moz-do-not-send="true">err.info</a>) rcode=$(err.rcode)
              rreason=$(err.rreason) ---\n");<br>
                 xlog("--- error from [$si:$sp]\n+++++\n$mb\n++++\n");<br>
                 sl_send_reply($err.rcode, "$err.rreason");<br>
                 exit;<br>
              }<br>
            </div>
            <div><br>
            </div>
            <div>...but when I get a message parsing error, the
              error_route seems to ignore it. What am I doing wrong?</div>
            <div><br>
            </div>
            <div>ERROR:core:parse_method: invalid character :<br>
            </div>
            <div><a class="moz-txt-link-freetext" href="INFO:core:parse_first_line">INFO:core:parse_first_line</a>: failed to parse the method<br>
              <a class="moz-txt-link-freetext" href="INFO:core:parse_first_line">INFO:core:parse_first_line</a>: bad message<br>
              ERROR:core:parse_msg: message=<Contact: <<a
                href="http://sip:1234@abc.def.com:5060" target="_blank"
                moz-do-not-send="true">sip:1234@abc.def.com:5060</a>>#015#012User-Agent:
              MWWRTC 3.4.21042#015#012Accept:
              application/sdp,application/dtmf-relay,text/plain#015#012SIP/2.0
              200 OK#015#012Via: SIP/2.0/TCP
192.168.1.23:5060;rport=57559;received=192.168.1.23;branch=z9hG4bK72a5d21#015#012From:
              <<a href="mailto:sip%3Apinger@192.168.1.23"
                target="_blank" moz-do-not-send="true">sip:pinger@192.168.1.23</a>>;tag=33e693c3#015#012To:
<a class="moz-txt-link-rfc2396E" href="sip:xxx.xxx.xxx.xxx:5060"><sip:xxx.xxx.xxx.xxx:5060></a>;tag=1550918023#015#012Call-ID: <a
                href="http://fc585e54-72a5d21-ab2@192.168.1.23#015%23012CSeq"
                target="_blank" moz-do-not-send="true">fc585e54-72a5d21-ab2@192.168.1.23#015#012CSeq</a>:
              1 OPTIONS#015#012User-Agent: Yealink
              SIP-T54W#015#012Content-Length: 0#015#012#015#012><br>
              ERROR:core:receive_msg: Unable to parse msg received from
              [<a href="http://192.168.1.23:5060" target="_blank"
                moz-do-not-send="true">192.168.1.23:5060</a>]<br>
              ERROR:core:tcp_handle_req: receive_msg failed<br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>We are running OpenSIPS 3.1</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>(this is a follow-up to my other query <a
                href="http://lists.opensips.org/pipermail/users/2021-May/044776.html"
                target="_blank" moz-do-not-send="true">http://lists.opensips.org/pipermail/users/2021-May/044776.html</a>)</div>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>