无法创建套接字以调用我的星号服务器? [英] Unable to create socket so as to call to my asterisk server?

查看:58
本文介绍了无法创建套接字以调用我的星号服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打电话给asterisk时,asterisk会给我一个CONGESTION状态.当我检查日志时,收到以下警告:

When i call to asterisk , asterisk give me a CONGESTION status. When I check my log , it was given following warning :

[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值,但是仍然出现问题.谁能知道这个问题是如何产生的以及如何解决.

I have given high ulimit value but still problem arises. Can anyone know how this problem arises and how it could be stoped.

推荐答案

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

Just try below two lines in command line

sudo asterisk -cvvvvvvvvvvvvvvvvr

在星号CLI

ulimit descriptors 180839

这篇关于无法创建套接字以调用我的星号服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆