Re: [OpenSIPS-Users] error_route not triggered for parsing error

2021-05-28 Thread Mark Allen
Ticket raised - https://github.com/OpenSIPS/opensips/issues/2533

On Fri, 28 May 2021 at 07:32, Mark Allen  wrote:

> Thanks Bogdan - will do
>
> On Fri, 28 May 2021 at 06:54, Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Mark,
>>
>> Consider opening a ticket on github.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>> OpenSIPS Bootcamp 2021 online
>>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>>
>> On 5/27/21 2:57 PM, Mark Allen wrote:
>>
>> 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:
>> https://opensips.org/pipermail/users/2019-February/040605.html
>>
>> On Thu, 27 May 2021 at 11:56, Mark Allen  wrote:
>>
>>>
>>> In my script, I have an error_route...
>>>
>>> error_route {
>>>xlog("--- error route class=$(err.class) level=$(err.level)
>>> info=$(err.info) rcode=$(err.rcode) rreason=$(err.rreason)
>>> ---\n");
>>>xlog("--- error from [$si:$sp]\n+\n$mb\n\n");
>>>sl_send_reply($err.rcode, "$err.rreason");
>>>exit;
>>> }
>>>
>>> ...but when I get a message parsing error, the error_route seems to
>>> ignore it. What am I doing wrong?
>>>
>>> ERROR:core:parse_method: invalid character :
>>> INFO:core:parse_first_line: failed to parse the method
>>> INFO:core:parse_first_line: bad message
>>> ERROR:core:parse_msg: message=>> #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:
>>> ;tag=33e693c3#015#012To:
>>> ;tag=1550918023#015#012Call-ID:
>>> fc585e54-72a5d21-ab2@192.168.1.23#015#012CSeq
>>> : 1
>>> OPTIONS#015#012User-Agent: Yealink SIP-T54W#015#012Content-Length:
>>> 0#015#012#015#012>
>>> ERROR:core:receive_msg: Unable to parse msg received from [
>>> 192.168.1.23:5060]
>>> ERROR:core:tcp_handle_req: receive_msg failed
>>>
>>>
>>> We are running OpenSIPS 3.1
>>>
>>>
>>> (this is a follow-up to my other query
>>> http://lists.opensips.org/pipermail/users/2021-May/044776.html)
>>>
>>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] error_route not triggered for parsing error

2021-05-28 Thread Mark Allen
Thanks Bogdan - will do

On Fri, 28 May 2021 at 06:54, Bogdan-Andrei Iancu 
wrote:

> Hi Mark,
>
> Consider opening a ticket on github.
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS Bootcamp 2021 online
>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>
> On 5/27/21 2:57 PM, Mark Allen wrote:
>
> 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:
> https://opensips.org/pipermail/users/2019-February/040605.html
>
> On Thu, 27 May 2021 at 11:56, Mark Allen  wrote:
>
>>
>> In my script, I have an error_route...
>>
>> error_route {
>>xlog("--- error route class=$(err.class) level=$(err.level)
>> info=$(err.info) rcode=$(err.rcode) rreason=$(err.rreason)
>> ---\n");
>>xlog("--- error from [$si:$sp]\n+\n$mb\n\n");
>>sl_send_reply($err.rcode, "$err.rreason");
>>exit;
>> }
>>
>> ...but when I get a message parsing error, the error_route seems to
>> ignore it. What am I doing wrong?
>>
>> ERROR:core:parse_method: invalid character :
>> INFO:core:parse_first_line: failed to parse the method
>> INFO:core:parse_first_line: bad message
>> ERROR:core:parse_msg: message=> #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:
>> ;tag=33e693c3#015#012To:
>> ;tag=1550918023#015#012Call-ID:
>> fc585e54-72a5d21-ab2@192.168.1.23#015#012CSeq
>> : 1
>> OPTIONS#015#012User-Agent: Yealink SIP-T54W#015#012Content-Length:
>> 0#015#012#015#012>
>> ERROR:core:receive_msg: Unable to parse msg received from [
>> 192.168.1.23:5060]
>> ERROR:core:tcp_handle_req: receive_msg failed
>>
>>
>> We are running OpenSIPS 3.1
>>
>>
>> (this is a follow-up to my other query
>> http://lists.opensips.org/pipermail/users/2021-May/044776.html)
>>
>>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] error_route not triggered for parsing error

2021-05-27 Thread Bogdan-Andrei Iancu

Hi Mark,

Consider opening a ticket on github.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Bootcamp 2021 online
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 5/27/21 2:57 PM, Mark Allen wrote:
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: 
https://opensips.org/pipermail/users/2019-February/040605.html 



On Thu, 27 May 2021 at 11:56, Mark Allen > wrote:



In my script, I have an error_route...

error_route {
   xlog("--- error route class=$(err.class) level=$(err.level)
        info=$(err.info ) rcode=$(err.rcode)
rreason=$(err.rreason) ---\n");
   xlog("--- error from [$si:$sp]\n+\n$mb\n\n");
   sl_send_reply($err.rcode, "$err.rreason");
   exit;
}

...but when I get a message parsing error, the error_route seems
to ignore it. What am I doing wrong?

ERROR:core:parse_method: invalid character :
INFO:core:parse_first_line: failed to parse the method
INFO:core:parse_first_line: bad message
ERROR:core:parse_msg: message=http://sip:1...@abc.def.com:5060>>#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:
mailto:sip%3Apinger@192.168.1.23>>;tag=33e693c3#015#012To:
;tag=1550918023#015#012Call-ID:
fc585e54-72a5d21-ab2@192.168.1.23#015#012CSeq
: 1
OPTIONS#015#012User-Agent: Yealink SIP-T54W#015#012Content-Length:
0#015#012#015#012>
ERROR:core:receive_msg: Unable to parse msg received from
[192.168.1.23:5060 ]
ERROR:core:tcp_handle_req: receive_msg failed


We are running OpenSIPS 3.1


(this is a follow-up to my other query
http://lists.opensips.org/pipermail/users/2021-May/044776.html
)


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] error_route not triggered for parsing error

2021-05-27 Thread Mark Allen
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:
https://opensips.org/pipermail/users/2019-February/040605.html

On Thu, 27 May 2021 at 11:56, Mark Allen  wrote:

>
> In my script, I have an error_route...
>
> error_route {
>xlog("--- error route class=$(err.class) level=$(err.level)
> info=$(err.info) rcode=$(err.rcode) rreason=$(err.rreason)
> ---\n");
>xlog("--- error from [$si:$sp]\n+\n$mb\n\n");
>sl_send_reply($err.rcode, "$err.rreason");
>exit;
> }
>
> ...but when I get a message parsing error, the error_route seems to ignore
> it. What am I doing wrong?
>
> ERROR:core:parse_method: invalid character :
> INFO:core:parse_first_line: failed to parse the method
> INFO:core:parse_first_line: bad message
> ERROR:core:parse_msg: message= #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:
> ;tag=33e693c3#015#012To:
> ;tag=1550918023#015#012Call-ID:
> fc585e54-72a5d21-ab2@192.168.1.23#015#012CSeq
> : 1
> OPTIONS#015#012User-Agent: Yealink SIP-T54W#015#012Content-Length:
> 0#015#012#015#012>
> ERROR:core:receive_msg: Unable to parse msg received from [
> 192.168.1.23:5060]
> ERROR:core:tcp_handle_req: receive_msg failed
>
>
> We are running OpenSIPS 3.1
>
>
> (this is a follow-up to my other query
> http://lists.opensips.org/pipermail/users/2021-May/044776.html)
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users