Module: kamailio
Branch: master
Commit: 03b955ef8cc2ffcc08d0b361c0f1d6ce057c68b8
URL:
https://github.com/kamailio/kamailio/commit/03b955ef8cc2ffcc08d0b361c0f1d6c…
Author: Sven Neuhaus <neuhaus(a)tyntec.com>
Committer: Sven Neuhaus <neuhaus(a)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/03b955ef8cc2ffcc08d0b361c0f1d6c…
Patch:
https://github.com/kamailio/kamailio/commit/03b955ef8cc2ffcc08d0b361c0f1d6c…
---
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");
}