Module: kamailio
Branch: master
Commit: 4d41b85a6b9d7f82306282a19c01d63b90f2a7d9
URL:
https://github.com/kamailio/kamailio/commit/4d41b85a6b9d7f82306282a19c01d63…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2022-01-03T15:41:10+01:00
dbcluster: Add RPC error message wheb listing connections and no cluster is found
---
Modified: src/modules/db_cluster/db_cluster_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4d41b85a6b9d7f82306282a19c01d63…
Patch:
https://github.com/kamailio/kamailio/commit/4d41b85a6b9d7f82306282a19c01d63…
---
diff --git a/src/modules/db_cluster/db_cluster_mod.c
b/src/modules/db_cluster/db_cluster_mod.c
index bdbbb70ce6..a2c28f88e5 100644
--- a/src/modules/db_cluster/db_cluster_mod.c
+++ b/src/modules/db_cluster/db_cluster_mod.c
@@ -189,6 +189,7 @@ static void dbcl_rpc_list_connections(rpc_t *rpc, void *c)
if(cls==NULL)
{
LM_ERR("cluster not found [%.*s]\n", cluster.len, cluster.s);
+ rpc->fault(c, 500, "Cluster not found");
return;
}