[sr-dev] git:master:03b955ef: core: Fix label for RPC command ("proto" -> "port")

Sven Neuhaus neuhaus at tyntec.com
Wed Sep 30 08:46:39 CEST 2015


Module: kamailio
Branch: master
Commit: 03b955ef8cc2ffcc08d0b361c0f1d6ce057c68b8
URL: https://github.com/kamailio/kamailio/commit/03b955ef8cc2ffcc08d0b361c0f1d6ce057c68b8

Author: Sven Neuhaus <neuhaus at tyntec.com>
Committer: Sven Neuhaus <neuhaus at tyntec.com>
Date: 2015-09-29T15:26:45+02:00

core: Fix label for RPC command ("proto" -> "port")

---

Modified: core_cmd.c

---

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

---

diff --git a/core_cmd.c b/core_cmd.c
index 966bcbf..21c1387 100644
--- a/core_cmd.c
+++ b/core_cmd.c
@@ -925,7 +925,7 @@ static void core_sockets_list(rpc_t* rpc, void* c)
 					rpc->struct_add(ha, "ss",
 						"address", ai->address_str.s);
 				rpc->struct_add(ha, "sss",
-						"proto", si->port_no_str.s,
+						"port", si->port_no_str.s,
 						"mcast", si->flags & SI_IS_MCAST ? "yes" : "no",
 						"mhomed", si->flags & SI_IS_MHOMED ? "yes" : "no");
 			} else {
@@ -939,7 +939,7 @@ static void core_sockets_list(rpc_t* rpc, void* c)
 					rpc->struct_add(ha, "s",
 						"ipaddress", si->address_str.s);
 				rpc->struct_add(ha, "sss",
-						"proto", si->port_no_str.s,
+						"port", si->port_no_str.s,
 						"mcast", si->flags & SI_IS_MCAST ? "yes" : "no",
 						"mhomed", si->flags & SI_IS_MHOMED ? "yes" : "no");
 			}




More information about the sr-dev mailing list