[asterisk-bugs] [Asterisk 0014777]: No RTP ports remaining. Can't setup media stream for this call.
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Apr 27 08:57:29 CDT 2009
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=14777
======================================================================
Reported By: lamsoft
Assigned To: lmadsen
======================================================================
Project: Asterisk
Issue ID: 14777
Category: Channels/chan_sip/General
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
Asterisk Version: 1.6.1.0-rc3
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-03-29 10:19 CDT
Last Modified: 2009-04-27 08:57 CDT
======================================================================
Summary: No RTP ports remaining. Can't setup media stream for
this call.
Description:
I'm running Asterisk on VMWare under Windows 2003 Server using VMWare NAT.
Because I have to input the port mapping manually (Asterisk is behind
NAT), I just assigned 26 ports from 20000 - 20025, but I think it is enough
for me to use because I just have 3 SIP peers.
reinvite set to "no" in sip.conf
There are two PSTN account,
one is VOIP type, provided by my ISP, the number is 3xxx-xxxx
and the other one is using Linksys SPA-3102, physically connected to a
PSTN line provided by my service provider, the number is 2xxx-xxxx
When I run "netstat -nap | grep asterisk", there are no RTP port being
used initially.
I call the PSTN number 3xxx-xxxx, 2 RTP ports assigned, and the rule is
forward to a voice menu to select which extension you want to call, I enter
the extension number, 6 RTP ports assigned, when I disconnect the call,
there are 2 RTP ports using, it seems ok that ASTERISK know the call is
disconnected and release that RTP port.
But if I call the PSTN Number 2xxx-xxxx, my ATA-Box forward that call to
asterisk, and same, select the extension to call, after that, 8 RTP ports
being used, and after disconnect the call, asterisk does not release the
RTP ports, and so on more and more ports are being used and finally an
error is shown in "asterisk -r":
[Mar 28 23:24:17] ERROR[9140]: rtp.c:2517 ast_rtp_new_with_bindaddr: No
RTP ports remaining. Can't setup media stream for this call.
[Mar 28 23:24:17] WARNING[9140]: chan_sip.c:6272 sip_alloc: Unable to
create RTP audio session: Address already in use
What I can do is either "core restart now" or "service asterisk restart"
to force asterisk to release all the RTP port.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0014919 RTP ports dont get closed with SIP over...
======================================================================
----------------------------------------------------------------------
(0103797) file (administrator) - 2009-04-27 08:57
http://bugs.digium.com/view.php?id=14777#c103797
----------------------------------------------------------------------
After further examination of the provided information this fits perfectly
with what I fixed. I am quite confident this has been fixed by my commit.
Issue History
Date Modified Username Field Change
======================================================================
2009-04-27 08:57 file Note Added: 0103797
2009-04-27 08:57 file Status feedback => resolved
2009-04-27 08:57 file Resolution open => fixed
======================================================================
More information about the asterisk-bugs
mailing list