gpt4 book ai didi

linux - 无法创建套接字以调用我的 Asterisk 服务器?

转载 作者:太空宇宙 更新时间:2023-11-04 04:46:59 25 4
gpt4 key购买 nike

当我调用 asterisk 时,asterisk 给我一个 CONGESTION 状态。当我检查日志时,出现以下警告:

[Mar 17 13:33:03] WARNING[657] acl.c: Cannot create socket
[Mar 17 13:33:03] ERROR[657] rtp.c: Unable to allocate socket: Too many open files
[Mar 17 13:33:03] ERROR[657] rtp.c: Unable to allocate socket: Too many open files
[Mar 17 13:33:03] WARNING[657] chan_sip.c: Unable to create RTP audio and video session: Too many open files

[Mar 17 13:33:32] WARNING[657] channel.c: Channel allocation failed: Can't create alert pipe!
[Mar 17 13:33:32] WARNING[657] chan_sip.c: Unable to allocate AST channel structure for SIP channel
[Mar 17 13:33:32] NOTICE[657] chan_sip.c: Unable to create/find SIP channel for this INVITE

我已经给出了很高的 ulimit 值,但仍然出现问题。谁能知道这个问题是如何产生的以及如何阻止它。

最佳答案

只需在命令行中尝试以下两行

sudo asterisk -cvvvvvvvvvvvvvvvvr

在 Asterisk CLI 中

ulimit descriptors 180839

关于linux - 无法创建套接字以调用我的 Asterisk 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29115566/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com