Module: sip-router
Branch: master
Commit: 7dced0f9e7f8315c7a39b46e38a488cff105de7e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7dced0f…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Jul 13 18:03:47 2009 +0200
mi_rpc: mi returns always an array
Try returning always an array: it makes no difference for sercmd,
but it helps for xmlrpc.
---
modules/mi_rpc/mi_rpc_mod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/mi_rpc/mi_rpc_mod.c b/modules/mi_rpc/mi_rpc_mod.c
index a1329ce..cc3daac 100644
--- a/modules/mi_rpc/mi_rpc_mod.c
+++ b/modules/mi_rpc/mi_rpc_mod.c
@@ -40,7 +40,7 @@ static const char* rpc_mi_exec_doc[2] = {
static void rpc_mi_exec(rpc_t* rpc, void* c);
rpc_export_t mr_rpc[] = {
- {"mi", rpc_mi_exec, rpc_mi_exec_doc, 0},
+ {"mi", rpc_mi_exec, rpc_mi_exec_doc, RET_ARRAY},
{0, 0, 0, 0}
};