-1

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

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

arheops
  • 15,544
  • 1
  • 21
  • 27
Ijas Ahamed N
  • 5,632
  • 5
  • 31
  • 53

2 Answers2

4

Just try below two lines in command line

sudo asterisk -cvvvvvvvvvvvvvvvvr

In asterisk CLI

ulimit descriptors 180839
Ijas Ahamed N
  • 5,632
  • 5
  • 31
  • 53
  • Thanks I was able to use *CLI>ulimit descriptors 999999 and now I can place 200 active calls using MOH and sipp – gogasca Jul 17 '16 at 23:46
0

1) check selinux/apparmor security settings

2) check limits for running proccess

Check the open FD limit for a given process in Linux

3) check system wide limits for user asterisk(not root).

https://superuser.com/questions/810951/how-do-i-check-the-ulimit-for-another-user-and-change-open-files

Community
  • 1
  • 1
arheops
  • 15,544
  • 1
  • 21
  • 27