Module: kamailio
Branch: 5.0
Commit: 7649fa6b3b14426ace8b2ec63975d4274c296d67
URL:
https://github.com/kamailio/kamailio/commit/7649fa6b3b14426ace8b2ec63975d42…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-30T18:31:54+01:00
cfg_rpc: cfg.list rpc command returns an array of string values
(cherry picked from commit 47f2731503faf84b1e666753bcb2db03772224b4)
---
Modified: src/modules/cfg_rpc/cfg_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7649fa6b3b14426ace8b2ec63975d42…
Patch:
https://github.com/kamailio/kamailio/commit/7649fa6b3b14426ace8b2ec63975d42…
---
diff --git a/src/modules/cfg_rpc/cfg_rpc.c b/src/modules/cfg_rpc/cfg_rpc.c
index b694d06088..0b6d290e54 100644
--- a/src/modules/cfg_rpc/cfg_rpc.c
+++ b/src/modules/cfg_rpc/cfg_rpc.c
@@ -547,7 +547,7 @@ static rpc_export_t rpc_calls[] = {
{"cfg.rollback", rpc_rollback, rpc_rollback_doc, 0},
{"cfg.get", rpc_get, rpc_get_doc, 0},
{"cfg.help", rpc_help, rpc_help_doc, 0},
- {"cfg.list", rpc_list, rpc_list_doc, 0},
+ {"cfg.list", rpc_list, rpc_list_doc, RET_ARRAY},
{"cfg.diff", rpc_diff, rpc_diff_doc, 0},
{"cfg.add_group_inst", rpc_add_group_inst, rpc_add_group_inst_doc, 0},
{"cfg.del_group_inst", rpc_del_group_inst, rpc_del_group_inst_doc, 0},