[asterisk-bugs] [JIRA] (ASTERISK-30198) Error `Too many open files` occurs after about ~8000 calls when using mixmonitor

Peter Fern (JIRA) noreply at issues.asterisk.org
Mon Nov 21 17:30:51 CST 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260706#comment-260706 ] 

Peter Fern commented on ASTERISK-30198:
---------------------------------------

This issue is affecting our whole fleet of Asterisk servers, affects all current Asterisk versions and is high severity as leaking FDs will render Asterisk instances unusable. The Gerrit process appears to have stalled after the initial review.

I don't have the C or Asterisk internals chops to know what the side-effects of applying this change inside `ast_stream_and_wait` might be, but the change itself looks quite straight-forward. How do we best move forward on this?

> Error `Too many open files` occurs after about ~8000 calls when using mixmonitor
> --------------------------------------------------------------------------------
>
>                 Key: ASTERISK-30198
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30198
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_mixmonitor
>    Affects Versions: 19.5.0
>         Environment: Linux debian-buster 4.19.0-21-amd64
>            Reporter: Julien Alie
>            Assignee: Julien Alie
>
> Crash occurs because file descriptors are not freed until all resources are exhausted.  
> This issue happens when mixmonitor is configured to play `beep` on stop (flag P).  When call is hungup before manually stopping mixmonitor, it attempts to play `beep.slin` but will fail and file descriptor for beep will never be released.  
> Current workaround to avoid the issue is to disable the beep on stop (remove flag "P")



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list