Module: kamailio Branch: master Commit: 92c44f1b3196f125b3e298499ed65df12cdd1a5a URL: https://github.com/kamailio/kamailio/commit/92c44f1b3196f125b3e298499ed65df1...
Author: Rhys Hanrahan rhys@nexusone.com.au Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-01-07T12:27:25+01:00
core: Added virtual flag to output of core.sockets_list
---
Modified: src/core/core_cmd.c
---
Diff: https://github.com/kamailio/kamailio/commit/92c44f1b3196f125b3e298499ed65df1... Patch: https://github.com/kamailio/kamailio/commit/92c44f1b3196f125b3e298499ed65df1...
---
diff --git a/src/core/core_cmd.c b/src/core/core_cmd.c index ba17c06e47..8231e3b1b9 100644 --- a/src/core/core_cmd.c +++ b/src/core/core_cmd.c @@ -955,10 +955,11 @@ static void core_sockets_list(rpc_t* rpc, void* c) for (ai=si->addr_info_lst; ai; ai=ai->next) rpc->struct_add(ha, "ss", "address", ai->address_str.s); - rpc->struct_add(ha, "sss", + rpc->struct_add(ha, "ssss", "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"); } else { printf(" %s: %s", get_proto_name(proto), @@ -969,10 +970,11 @@ static void core_sockets_list(rpc_t* rpc, void* c) if (!(si->flags & SI_IS_IP)) rpc->struct_add(ha, "s", "ipaddress", si->address_str.s); - rpc->struct_add(ha, "sss", + rpc->struct_add(ha, "ssss", "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"); } } } while((proto=next_proto(proto)));