<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">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">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>INFO:core:parse_first_line: failed to parse the method<br>INFO:core:parse_first_line: 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: <sip:xxx.xxx.xxx.xxx:5060>;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></div></div>
</blockquote></div>