Beside from the usual hint to upgrade your kamailio to at least the latest version of the 5.3.x branch, i would have a look to other limits on the system (like limits of file descriptor and also port limits, e.g. on ulimit).
I have adjusted the number of files opened in the system to 65535。unlit -a open files 65535.What other problems could it be?