[OpenSIPS-Users] error_route not triggering

Ben Newlin Ben.Newlin at genesys.com
Fri Feb 1 16:25:18 EST 2019


Anyone got any ideas on this? Does anyone have an error_route successfully working in 2.4.4?

Ben Newlin

From: Users <users-bounces at lists.opensips.org> on behalf of Ben Newlin <Ben.Newlin at genesys.com>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
Date: Thursday, January 24, 2019 at 5:16 PM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: [OpenSIPS-Users] error_route not triggering

Hi,

I recently noticed some parsing errors in our logs and after digging further I’ve realized that our error route is not triggering when this occurs. Is there some sort of subscribe or attach operation needed to get calls to the error route? The documentation states it will be called automatically. I’ve been able to reproduce the issue in our testbed. We are running OpenSIPS 2.4.4.

My error route is defined like this:

error_route
{
  xlog("L_ALERT", "Error route called!\n");
}

This is what I get from OpenSIPS logs:

Jan 24 21:59:30 [329] ERROR:core:receive_msg: Unable to parse msg received from [203.0.113.4:48096]
Jan 24 21:59:30 [336] ERROR:core:parse_first_line: bad request first line
Jan 24 21:59:30 [336] ERROR:core:parse_first_line: at line 0 char 17:
Jan 24 21:59:30 [336] ERROR:core:parse_first_line: parsed so far: INVITE sip:bad to
Jan 24 21:59:30 [336] INFO:core:parse_first_line: bad message
Jan 24 21:59:30 [336] ERROR:core:parse_msg: message=<INVITE sip:bad to syntax\r\n at 203.0.113.2:5060;transport=UDP;user=phone SIP/2.0

My log from the error route is not called.

Any help would be appreciated. I’m probably missing something simple.

Ben Newlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190201/5f675834/attachment.html>


More information about the Users mailing list