[asterisk-users] Asterisk "we couldn't allocate a port for RTP" errors

David Cunningham dcunningham at voisonics.com
Wed Jul 27 23:58:34 CDT 2022


Hi Joel,

We see some channels stuck on the StopMonitor application which could be
the cause, though there are only about 20 of them.

An Asterisk restart is the immediate cure for sure - we were hoping to
identify some cause in order to prevent a repeat.

Thanks very much for your advice.


On Thu, 28 Jul 2022 at 13:31, Joel Serrano <joel at textplus.com> wrote:

> I would check if you don't have any channels in a hung/zombie state...
>
> Have a look if "core show calls" matches "core show channels".
>
> Either way, it seems wonky, so you might end up having to give that
> asterisk a restart... :S
>
> On Wed, Jul 27, 2022 at 6:21 PM David Cunningham <
> dcunningham at voisonics.com> wrote:
>
>> Hello,
>>
>> We have an Asterisk 13.38.2 server which today started giving "we
>> couldn't allocate a port for RTP" errors. The output of "netstat -anp"
>> showed that Asterisk was using all 10,000 ports allocated for RTP, even
>> though it only had a maximum of around 200 concurrent calls at any point in
>> the day. Even now when calls have fallen to less than 30, there are still
>> almost 10,000 ports in use.
>>
>> Does anyone have any suggestions on how to find out why so many ports are
>> in use?
>>
>> I'm aware that Asterisk 13 is no longer supported by Sangoma so I haven't
>> opened a bug report.
>>
>> Thanks in advance for any advice.
>>
>> --
>> David Cunningham, Voisonics Limited
>> http://voisonics.com/
>> USA: +1 213 221 1092
>> New Zealand: +64 (0)28 2558 3782
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220728/da04a05a/attachment.html>


More information about the asterisk-users mailing list