Module: kamailio
Branch: master
Commit: 0ea937c592bab36614b79f279ed77d3e63b15a51
URL:
https://github.com/kamailio/kamailio/commit/0ea937c592bab36614b79f279ed77d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-11T12:33:50+01:00
corex: added agname field to list sockets rpc output
---
Modified: src/modules/corex/corex_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0ea937c592bab36614b79f279ed77d3…
Patch:
https://github.com/kamailio/kamailio/commit/0ea937c592bab36614b79f279ed77d3…
---
diff --git a/src/modules/corex/corex_rpc.c b/src/modules/corex/corex_rpc.c
index 90f2e124125..47a69fd00a1 100644
--- a/src/modules/corex/corex_rpc.c
+++ b/src/modules/corex/corex_rpc.c
@@ -86,8 +86,11 @@ static void corex_rpc_list_sockets(rpc_t *rpc, void *ctx)
}
}
- if(rpc->struct_add(th, "sssssss", "port",
si->port_no_str.s,
+ if(rpc->struct_add(th, "ssssssss", "port",
si->port_no_str.s,
"sockstr", si->sock_str.s ? si->sock_str.s : "-",
+ "agname",
+ (si->agroup.agname[0] != '\0') ? si->agroup.agname
+ : "none",
"mcast", si->flags & SI_IS_MCAST ? "yes" :
"no",
"mhomed", si->flags & SI_IS_MHOMED ? "yes" :
"no",
"virtual", si->flags & SI_IS_VIRTUAL ? "yes" :
"no",