Module: kamailio
Branch: master
Commit: fc0ee0bca6d5b42d11e0d7ed5933e23ae1636941
URL:
https://github.com/kamailio/kamailio/commit/fc0ee0bca6d5b42d11e0d7ed5933e23…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2022-01-03T15:41:10+01:00
db_cluster: Add RPC error message when clusters not found
---
Modified: src/modules/db_cluster/db_cluster_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fc0ee0bca6d5b42d11e0d7ed5933e23…
Patch:
https://github.com/kamailio/kamailio/commit/fc0ee0bca6d5b42d11e0d7ed5933e23…
---
diff --git a/src/modules/db_cluster/db_cluster_mod.c
b/src/modules/db_cluster/db_cluster_mod.c
index 2ddbffc2ad..c42d5b2aa9 100644
--- a/src/modules/db_cluster/db_cluster_mod.c
+++ b/src/modules/db_cluster/db_cluster_mod.c
@@ -339,6 +339,7 @@ static void dbcl_rpc_list_clusters(rpc_t *rpc, void *c)
if(cls==NULL)
{
LM_ERR("root not set\n");
+ rpc->fault(c, 500, "Clusters not found");
return;
}