[sr-dev] git:5.0:adb39eb5: core: set RET_ARRAY flag for core.sockets_list command

Federico Cabiddu federico.cabiddu at gmail.com
Wed Jul 12 10:57:42 CEST 2017


Module: kamailio
Branch: 5.0
Commit: adb39eb5ad3f9d71f6e4eb3ab49682a38185171b
URL: https://github.com/kamailio/kamailio/commit/adb39eb5ad3f9d71f6e4eb3ab49682a38185171b

Author: grumvalski <federico.cabiddu at gmail.com>
Committer: Federico Cabiddu <federico.cabiddu at gmail.com>
Date: 2017-07-12T10:53:29+02:00

core: set RET_ARRAY flag for core.sockets_list command

(cherry picked from commit 38f514064a326f759e0e88adeffd03b32b35d6c0)

---

Modified: src/core/core_cmd.c

---

Diff:  https://github.com/kamailio/kamailio/commit/adb39eb5ad3f9d71f6e4eb3ab49682a38185171b.diff
Patch: https://github.com/kamailio/kamailio/commit/adb39eb5ad3f9d71f6e4eb3ab49682a38185171b.patch

---

diff --git a/src/core/core_cmd.c b/src/core/core_cmd.c
index 9d62617bdd..fadabf5a7f 100644
--- a/src/core/core_cmd.c
+++ b/src/core/core_cmd.c
@@ -989,7 +989,7 @@ static rpc_export_t core_rpc_methods[] = {
 	{"core.udp4_raw_info",     core_udp4rawinfo,       core_udp4rawinfo_doc,
 		0},
 	{"core.aliases_list",      core_aliases_list,      core_aliases_list_doc,   0},
-	{"core.sockets_list",      core_sockets_list,      core_sockets_list_doc,   0},
+	{"core.sockets_list",      core_sockets_list,      core_sockets_list_doc,   RET_ARRAY},
 #ifdef USE_DNS_CACHE
 	{"dns.mem_info",          dns_cache_mem_info,     dns_cache_mem_info_doc,
 		0	},




More information about the sr-dev mailing list