FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
When the mod_callcenter is idle for a long time (> than a day), it becomes unresponsive.
Even the callcenter_config agent list command fails.
After analyzing the code, it appears to me that it gets stuck at cc_execute_sql_callbackfunction.
Probably FS considers that the connection is active but in reality, it is closed on the PostgresSQL side.
Hence it simply waits for the query to finish but never finishes.
To Reproduce
Ensure mod_callcenter is loaded and you can run callcenter_config agent list.
Keep it at this stage for more than 24 hours. Nothing should be done during this idle period. (Not sure if this is enough though). In my case, it was idle for 2+ days. (Weekend)
Now, try to hit the callcenter_config agent list.
=> Your command gets stuck forever.
This is just an example, but even the call sent to this module gets stuck forever.
Expected behavior
=> The command should succeed. If the connection is broken, it should re-initiate a new connection.
Package version or git hash
Version v1.8.5
Database Used: Postgres 9.6
NOTE
Probably the issue is there on other modules too which uses the database connection.
Description
callcenter_config agent list
command fails.cc_execute_sql_callback
function.To Reproduce
callcenter_config agent list
.callcenter_config agent list
. => Your command gets stuck forever. This is just an example, but even the call sent to this module gets stuck forever.Expected behavior => The command should succeed. If the connection is broken, it should re-initiate a new connection.
Package version or git hash
NOTE