[asterisk-bugs] [Asterisk 0016774]: 1.6.1.13 and 1.6.1.14 UDP ports not freed =>

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Feb 5 15:19:16 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16774 
====================================================================== 
Reported By:                kowalma
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16774
Category:                   Core/RTP
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     feedback
Target Version:             Potential Blocker
Asterisk Version:           1.6.1.14 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-04 12:46 CST
Last Modified:              2010-02-05 15:19 CST
====================================================================== 
Summary:                    1.6.1.13 and 1.6.1.14 UDP ports not freed =>
Description: 
Since 1.6.1.13 looks there is problem with freeing UDP ports. 2-3 days ago
I upgraded one box from 1.6.0.5 and second from 1.6.1.1 to 1.6.1.13 and
every few thusants calls I'm running out of UDP ports.

mg0:~# rasterisk -x " sip show channels"
Peer             User/ANR         Call ID          Format           Hold  
  Last Message    Expiry
192.168.9.2      mg0              28f9a3d00edd874  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              77d13e113c8409e  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              7297a36515d38d1  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              07b22e6a461f5b3  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              3076b8603492c24  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              30180433452ebf7  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              28c1ad56233d208  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              0182d70a3ec9d14  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              76a5f0c46328c99  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              56be88b8268d261  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              626ef5624a83e0c  0x0 (nothing)    No    
  Rx: ACK
192.168.9.2      mg0              1af2adc275f0b10  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              645b2a390a66a11  0x0 (nothing)    No    
  Rx: ACK
192.168.9.2      mg0              502a709e10ff8dc  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              58ab1eac5e50a92  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              6967aeee16f8e71  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              618b46651909df3  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              4ddae9dc5f91236  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              250e1d32111b2c5  0x0 (nothing)    No    
  Rx: ACK
192.168.9.2      mg0              72cfef2c5fc67eb  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              6d70624c7eb9942  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              5e2c546e27a0af2  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              53fa535541908ce  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              0f8cb2514fd7e4f  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              5cdeead033ebb17  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              4083b3aa6c3a4c5  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              4bd036370f2ac5d  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              50467ac42828e9d  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              17faaccd5554f00  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              5bfa754b209122e  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              78d3f4fa2920ac2  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              2fcbbb020e2cf0a  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              2cf255430ced865  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              385ac7317e336fc  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              633b90226eaac79  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              36fe9f8b78ce7b2  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              61b9d37358c31de  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              30a1736605b2c28  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              6fe7902c4ae25f0  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              7a3168e81aabb71  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              4bf8f6e05a1efc9  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              6665165a33c355e  0x8 (alaw)       No    
  Rx: INVITE
192.168.9.2      mg0              3446ee9b07593d4  0x8 (alaw)       No    
  Rx: ACK
192.168.9.2      mg0              145209e01d8b3d4  0x8 (alaw)       No    
  Tx: ACK
192.168.9.2      mg0              45a79c7c44628cf  0x8 (alaw)       No    
  Rx: INVITE
45 active SIP dialogs
mg0:~#

On this box I have 4xE1 so max I can handle 120 calls. 
Before upgrade this MG was rock-stable and had asterisk uptime counted in
weeks.

I have one box running 1.6.1.12 and there seems there is no RTP-UDP ports
problem.

mg0:~# while true
> do
>  lsof | grep UDP -c ; sleep 10
> done
682
688
691
682
703
730
745
757
781
^C
mg0:~#

Every few hours I need to restart asterisk as it runs out of free ports

/etc/asterisk/rtp.conf
[general]
rtpstart=5000
rtpend=51000

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016721 after a few minutes it takes down the s...
====================================================================== 

---------------------------------------------------------------------- 
 (0117804) kowalma (reporter) - 2010-02-05 15:19
 https://issues.asterisk.org/view.php?id=16774#c117804 
---------------------------------------------------------------------- 
One more thing that popped-up and may be related to this problem. I've saw
huge amount of Down channels

Asterisk-node0:~# rasterisk -x "core show channels" | grep -c Down
1207
Asterisk-node0:~#

and they do not react on soft hangup


Asterisk-node0:~# rasterisk -x "core show channel SIP/20033-000079c8"
 -- General --
           Name: SIP/20033-000079c8
           Type: SIP
       UniqueID: 1265359356.32092
      Caller ID: 20033
    DNID Digits: 0207001800532311111111
       Language: pl
          State: Down (0)
          Rings: 0
  NativeFormats: 0x8 (alaw)
    WriteFormat: 0x8 (alaw)
     ReadFormat: 0x8 (alaw)
 WriteTranscode: No
  ReadTranscode: No
1st File Descriptor: 875
      Frames in: 0
     Frames out: 0
 Time to Hangup: 0
   Elapsed Time: 12h35m22s
  Direct Bridge: <none>
Indirect Bridge: <none>
 --   PBX   --
        Context: out
      Extension: 0207001800532311111111
       Priority: 1
     Call Group: 0
   Pickup Group: 0
    Application: (N/A)
           Data: (None)
    Blocking in: (Not Blocking)
      Variables:
RTPAUDIOQOSRTT=Not available
RTPAUDIOQOSLOSS=lost=1;expected=1;
RTPAUDIOQOSJITTER=rxjitter=0.000000;
RTPAUDIOQOS=ssrc=1287011820;themssrc=0;rxjitter=0.000000;rxcount=0;txcount=0;
SIPCALLID=13e4f3d237526ced7bda6b612eb01126 at 192.168.20.33
SIPDOMAIN=sip.local
SIPURI=sip:20033 at 192.168.20.33

  CDR Variables:
level 1: channel=SIP/20033-000079c8
level 1: start=2010-02-05 09:42:36
level 1: duration=45322
level 1: billsec=0
level 1: disposition=NO ANSWER
level 1: amaflags=DOCUMENTATION
level 1: uniqueid=1265359356.32092

Asterisk-node0:~# 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-05 15:19 kowalma        Note Added: 0117804                          
======================================================================




More information about the asterisk-bugs mailing list