<div dir="ltr">Thanks Bogdan - will do</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 28 May 2021 at 06:54, Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</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>
    <font face="monospace">Hi Mark,<br>
      <br>
      Consider opening a ticket on github.<br>
      <br>
      Regards,<br>
    </font>
    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2021 online
  <a href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/" target="_blank">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
    <div>On 5/27/21 2:57 PM, Mark Allen wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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" target="_blank">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" target="_blank">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">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>INFO:core:parse_first_line</a>: failed to parse the method<br>
              <a>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">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">sip:pinger@192.168.1.23</a>>;tag=33e693c3#015#012To:
<a><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">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">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">http://lists.opensips.org/pipermail/users/2021-May/044776.html</a>)</div>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div>