Jump to content
Vodia PBX forum
djanjic

Running out of sockets???

Recommended Posts

Hello all,

 

we are running hosted PBX on CentOS currently with about 75 domains and 360 extensions on it. For 90% of our phones we use SNOM phones which we auto provision. All these phones are registering via TLS except the few fax ATA's and some wireless Incom phones. The problem we run in to is that after server is running for a while ( 3 months or less ) auto provisioning runs in to problems. The problem is that there are no sockets available for the phone to register, sometimes the phone eventually gets registered but it takes anywhere between 30 minutes to an hour. The only thing that seems to work to fix the problem is to reboot the server. Is there a way to increase the number of sockets available for registration in order to avoid rebooting the server every few months? Thanks,

 

Dusan

Share this post


Link to post
Share on other sites

What does the picture look like on netstat level? There is should be possible to see if there are any stale sockets. There is a setting that controls the number of sockets for SIP and also for HTTP, did you check that already?

Share this post


Link to post
Share on other sites

Hello,

 

On a slow morning netstat shows about 220 tls sockets and I am including text file of active unix domain sockets, which I don't know how to interpret.

 

Also, trying to find where on the settings for the number of sockets, is that under Settings--->Network---->Ports? If it is I see the following:

 

LDAP Port (TCP, StartTLS): 389

LDAP Port (TLS): 2346

 

Dusan

unixsockets.txt

Share this post


Link to post
Share on other sites

I would not put LDAP on port 389 because that causes a lot of scanners sitting there the whole day thinking this might be some old Microsoft server. This might actually be the reason why you are running out of sockets. Please try netstat -anp|grep pbx

Share this post


Link to post
Share on other sites

I am including the result of that command. I have excluded all IP addresses connected to the PBX since I do not want to share those with public. Included is the text file of the rest of it. Ican send the whole result privately if it is needed?

netstat.txt

Share this post


Link to post
Share on other sites

In the private message there is nothing really out of the ordinary. A few connections to 389, but no waiting connections. Did you check your settings for Maximum number of SIP connections (reg_sipsettings.htm)?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×