Module: kamailio
Branch: master
Commit: 1c22f395df81dab09288ff945e97b0040894daaf
URL:
https://github.com/kamailio/kamailio/commit/1c22f395df81dab09288ff945e97b00…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-17T22:47:02+01:00
pipelimit: set array result tipe for rpc commands
- rpc stats and get pipes can return more than one item
---
Modified: modules/pipelimit/pipelimit.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1c22f395df81dab09288ff945e97b00…
Patch:
https://github.com/kamailio/kamailio/commit/1c22f395df81dab09288ff945e97b00…
---
diff --git a/modules/pipelimit/pipelimit.c b/modules/pipelimit/pipelimit.c
index 5ed5c13..2a15fbb 100644
--- a/modules/pipelimit/pipelimit.c
+++ b/modules/pipelimit/pipelimit.c
@@ -912,8 +912,8 @@ void rpc_pl_push_load(rpc_t *rpc, void *c) {
}
static rpc_export_t rpc_methods[] = {
- {"pl.stats", rpc_pl_stats, rpc_pl_stats_doc, 0},
- {"pl.get_pipes", rpc_pl_get_pipes, rpc_pl_get_pipes_doc, 0},
+ {"pl.stats", rpc_pl_stats, rpc_pl_stats_doc, RET_ARRAY},
+ {"pl.get_pipes", rpc_pl_get_pipes, rpc_pl_get_pipes_doc, RET_ARRAY},
{"pl.set_pipe", rpc_pl_set_pipe, rpc_pl_set_pipe_doc, 0},
{"pl.get_pid", rpc_pl_get_pid, rpc_pl_get_pid_doc, 0},
{"pl.set_pid", rpc_pl_set_pid, rpc_pl_set_pid_doc, 0},