Hi All, We've been investigating an issue with a SIP configuration with a library who have multiple SIP units. It took us a while to find out that the issue was due to the max servers being reached. What would be a nice enhancement is adding a warning / error message into the sip logs to say that the max servers were reached. SIP2 is using prefork which from reading it seems to be able to provide this message which we currently don't seem to be doing. Kind regards, Ryan.
For some flavour, we discovered this when we hadn't set a max_server config in the SIPConfig.xml as we were of the (apparently false!) impression that no max server statement = no limit. It appears that the underlying subsystem Net::Server::PreFork has a default of 50 connections, but that's not apparent from the sip.log Ideally it would just pop a simple MAX SERVERS REACHED or similar - it doesn't have to be fancy!
Created attachment 191809 [details] [review] Bug 41678: Add warning log when SIPServer reaches max_servers capacity This enhancement adds logging to warn administrators when the SIP server reaches its configured maximum number of child processes. The warning is logged periodically (once per second) when the current child count equals or exceeds the max_servers configuration value. The implementation uses the pre_loop_hook to check capacity in the parent process and logs using the existing SIP logging system at WARNING level.