Module: kamailio
Branch: master
Commit: 04aa88c524ba6a61e59d9be6a344dce79c3aa178
URL:
https://github.com/kamailio/kamailio/commit/04aa88c524ba6a61e59d9be6a344dce…
Author: Rhys Hanrahan <rhys(a)nexusone.com.au>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-01-07T12:27:25+01:00
corex: Added virtual flag to output of "corex.list_sockets"
---
Modified: src/modules/corex/corex_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/04aa88c524ba6a61e59d9be6a344dce…
Patch:
https://github.com/kamailio/kamailio/commit/04aa88c524ba6a61e59d9be6a344dce…
---
diff --git a/src/modules/corex/corex_rpc.c b/src/modules/corex/corex_rpc.c
index 8677c35d22..12fd8044af 100644
--- a/src/modules/corex/corex_rpc.c
+++ b/src/modules/corex/corex_rpc.c
@@ -95,10 +95,11 @@ static void corex_rpc_list_sockets(rpc_t* rpc, void* ctx)
}
}
- if(rpc->struct_add(th, "sssss",
+ if(rpc->struct_add(th, "ssssss",
"PORT", si->port_no_str.s,
"MCAST", si->flags & SI_IS_MCAST ? "yes" :
"no",
- "MHOMED", si->flags & SI_IS_MHOMED? "yes" :
"no",
+ "MHOMED", si->flags & SI_IS_MHOMED ? "yes" :
"no",
+ "VIRTUAL", si->flags & SI_IS_VIRTUAL ? "yes" :
"no",
"SOCKNAME", si->sockname.s? si->sockname.s : "-",
"ADVERTISE",
si->useinfo.name.s?si->useinfo.name.s:"-")<0)
{