Ijas Ahamed Ijas Ahamed - 16 days ago 4
Linux Question

Unable to create socket so as to call to my asterisk server?

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.

Answer

Just try below two lines in command line

sudo asterisk -cvvvvvvvvvvvvvvvvr

In asterisk CLI

ulimit descriptors 180839