[asterisk-bugs] [Asterisk 0015540]: [patch] chan_sip behaves like crazy if there is not route to destination

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Sep 10 14:08:40 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15540 
====================================================================== 
Reported By:                nmav
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15540
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.4.25.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-21 03:55 CDT
Last Modified:              2009-09-10 14:08 CDT
====================================================================== 
Summary:                    [patch] chan_sip behaves like crazy if there is not
route to destination
Description: 
If the host asterisk is running has no routes to the registration server I
get continuous messages like below. In addition after ten minutes the
machine crashes due to no memory available (asterisk takes it all).

[Apr  1 04:10:39] WARNING[916]: chan_sip.c:1804 __sip_xmit: sip_xmit of
0x15cb44
 (len 403) to 192.168.240.34:5060 returned -2: Unknown error 101
[Apr  1 04:10:39] NOTICE[916]: chan_sip.c:8144 sip_reg_timeout:    --
Registrati
on for 'nmav2 at 192.168.240.34' timed out, trying again (Attempt
https://issues.asterisk.org/view.php?id=622)
[Apr  1 04:10:39] WARNING[916]: acl.c:548 ast_ouraddrfor: Cannot connect
REGISTER attempt 623 to nmav2 at 192.168.240.34
[Apr  1 04:10:39] WARNING[916]: chan_sip.c:1804 __sip_xmit: sip_xmit of
0x8f9f4c
 (len 403) to 192.168.240.34:5060 returned -2: Unknown error 101
[Apr  1 04:10:39] NOTICE[916]: chan_sip.c:8144 sip_reg_timeout:    --
Registrati
on for 'nmav1 at 192.168.240.34' timed out, trying again (Attempt
https://issues.asterisk.org/view.php?id=614)
[Apr  1 04:10:39] WARNING[916]: acl.c:548 ast_ouraddrfor: Cannot connect
REGISTER attempt 615 to nmav1 at 192.168.240.34


====================================================================== 

---------------------------------------------------------------------- 
 (0110496) svnbot (reporter) - 2009-09-10 14:08
 https://issues.asterisk.org/view.php?id=15540#c110496 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 217668

U   branches/1.4/channels/chan_sip.c
U   branches/1.4/utils/Makefile

------------------------------------------------------------------------
r217668 | oej | 2009-09-10 14:08:39 -0500 (Thu, 10 Sep 2009) | 9 lines

Remove harmful code that causes endless loops. 
Remove code that causes loops in registrations. 

We have agreed that the patch that this code was part of was bad. I am
ripping out the code that causes 
the issue. putnopvut needs to check the rest of the patch, if it needs to
be changed as well.

This solves the issue reported in https://issues.asterisk.org/view.php?id=15540,
but needs more work before we
close it (as described above).


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=217668 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-10 14:08 svnbot         Note Added: 0110496                          
======================================================================




More information about the asterisk-bugs mailing list