I am not sure if this is actually working, or at least some operations to be done in the rpc command callback. Have you tested it?

Checking the DB capability and opening the DB connection inside the rpc command callback is not enough, because the module write from SIP workers not from RPC worker process. Actually, the RPC worker process might not need database connection at all, because it might never handle SIP traffic.

Are the SIP workers also opening connections after the flag is enabled via RPC? The PR does not seem to have code for it.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3877/c2173506650@github.com>