当我调用星号时,星号会给我一个阻塞状态。当我查看日志时,它收到了以下警告:
[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
在星号CLI 中
ulimit descriptors 180839
1)检查selinux/appermor安全设置
2) 检查运行过程的限制
检查Linux 中给定进程的打开FD限制
3) 检查用户星号(而非root)的系统范围限制。
https://superuser.com/questions/810951/how-do-i-check-the-ulimit-for-another-user-and-change-open-files