[asterisk-bugs] [Asterisk 0014919]: RTP ports dont get closed with SIP over TCP

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 20 12:05:17 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14919 
====================================================================== 
Reported By:                vrban
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   14919
Category:                   Channels/chan_sip/TCP-TLS
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 188895 
Request Review:              
====================================================================== 
Date Submitted:             2009-04-16 20:02 CDT
Last Modified:              2009-04-20 12:05 CDT
====================================================================== 
Summary:                    RTP ports dont get closed with SIP over TCP
Description: 
Iam using sipp to stress test chan_sip with a higher load of SIP over TCP
calls.
And i noticed that the RTP ports dont get closed. netstat shows 1000 open
udp ports after 500 finished SIP over TCP calls. And they get only closed
after i shutdown asterisk.

Tu ensure this is TCP related i have done the same test with SIP over UDP.
Then the RTP port get closed after the calls are done.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014777 No RTP ports remaining. Can't setup med...
====================================================================== 

---------------------------------------------------------------------- 
 (0103469) svnbot (reporter) - 2009-04-20 12:05
 http://bugs.digium.com/view.php?id=14919#c103469 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 189350

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r189350 | file | 2009-04-20 12:05:16 -0500 (Mon, 20 Apr 2009) | 10 lines

Fix a bug with non-UDP connections that caused dialogs to not get freed.

This issue crept up because of a reference count issue on non-UDP based
dialogs.
The dialog reference count was increased when transmitting a packet
reliably but never
decreased. This caused the dialog structure to hang around despite being
unlinked from
the dialogs container.

(closes issue http://bugs.digium.com/view.php?id=14919)
Reported by: vrban

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-20 12:05 svnbot         Note Added: 0103469                          
======================================================================




More information about the asterisk-bugs mailing list