Hi,
i've noticed the following detail with the TOPOS module:
I wanted to use topos with a database backend. I accidentally misconfigured my Kamailio by setting a database url and the storage type to "redis" without loading the topos_redis module, e.g.:
modparam("topos", "db_url", DB_URL) [...] a few lines below.... so I missed that line: modparam("topos", "storage", "redis")
This resulted in the DB-Connection not being initialized and in a crash without proper error message. While I can circumvent the crash by a safety check (which I just added), I wonder if it would be nicer, if Kamailio would not start at all in this case of misconfiguration?
Just a thought.....
Thanks, Carsten
Hello,
On 10.07.17 10:01, Carsten Bock wrote:
Hi,
i've noticed the following detail with the TOPOS module:
I wanted to use topos with a database backend. I accidentally misconfigured my Kamailio by setting a database url and the storage type to "redis" without loading the topos_redis module, e.g.:
modparam("topos", "db_url", DB_URL) [...] a few lines below.... so I missed that line: modparam("topos", "storage", "redis")
This resulted in the DB-Connection not being initialized and in a crash without proper error message. While I can circumvent the crash by a safety check (which I just added), I wonder if it would be nicer, if Kamailio would not start at all in this case of misconfiguration?
I am fine to fail at startup if no proper configuration for backend is defined.
Cheers, Daniel