FreePBX 17 on Debian issue - REGISTER/INVITE requests not processed by Asterisk

Hi all,

We are in process of moving our “old” FPBX15 on Centos 7 machines towards FPBX17 on Debian 12. We notice that on some of the machines, Asterisk suddenly stops responding to REGISTER/INVITE requests. We are seeing this behavior on both Asterisk 18 and Asterisk 20…

When we fire the command “core show taskprocessors”, we notice that the In Queue values for “pjsip/distributor-” are more than 0:

In the full log, just before this issue… I see a few errors:

WARNING[2928495][C-0000398a] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected ‘>’, expecting ‘-’ or ‘!’ or ‘(’ or ‘’; Input:
“LIMIT”=“LIMIT” & 3 & 0 & >0 & 0>=
^
[2024-11-07 17:10:41] WARNING[2928495][C-0000398a] ast_expr2.fl: If you have questions, please refer to Overview - Asterisk Documentation

[2024-11-07 16:37:33] ERROR[2109] iostream.c: SSL_shutdown() failed: error:00000001:lib(0)::reason(1), Internal SSL error
[2024-11-07 16:37:33] VERBOSE[2109] res_http_websocket.c: WebSocket connection from ‘X.X.X.X:20844’ forcefully closed due to fatal write error

Anyone has an idea what could cause this?

Update: I also notice the following warnings… But they are not present at the time of the issue:

[2024-11-08 15:09:33] WARNING[3098667][C-000003c6] taskprocessor.c: The ‘stasis/m:manager:core-00000007’ task processor queue reached 3000 scheduled tasks again.
[2024-11-08 15:37:40] WARNING[3102608][C-000003eb] taskprocessor.c: The ‘stasis/p:channel:all-00000d35’ task processor queue reached 500 scheduled tasks.

PS, according to ChatGPT, the following lines should I add to the /etc/sysctl.conf file:

net.core.somaxconn=1024
net.ipv4.tcp_max_syn_backlog=2048
net.core.netdev_max_backlog=1000
net.ipv4.tcp_tw_reuse=1

What do you guys think?