Module: kamailio
Branch: master
Commit: 47f2731503faf84b1e666753bcb2db03772224b4
URL:
https://github.com/kamailio/kamailio/commit/47f2731503faf84b1e666753bcb2db0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-30T18:30:45+01:00
cfg_rpc: cfg.list rpc command returns an array of string values
---
Modified: src/modules/cfg_rpc/cfg_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/47f2731503faf84b1e666753bcb2db0…
Patch:
https://github.com/kamailio/kamailio/commit/47f2731503faf84b1e666753bcb2db0…
---
diff --git a/src/modules/cfg_rpc/cfg_rpc.c b/src/modules/cfg_rpc/cfg_rpc.c
index a9c42dc1e3..f62855b092 100644
--- a/src/modules/cfg_rpc/cfg_rpc.c
+++ b/src/modules/cfg_rpc/cfg_rpc.c
@@ -614,7 +614,7 @@ static rpc_export_t rpc_calls[] = {
{"cfg.get", rpc_get, rpc_get_doc, 0},
{"cfg.reset", rpc_cfg_var_reset, rpc_cfg_var_reset_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},