Module: kamailio
Branch: master
Commit: 684317aa54a5a3c5ddee13793551b8a6a649cd66
URL:
https://github.com/kamailio/kamailio/commit/684317aa54a5a3c5ddee13793551b8a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-16T12:04:42+01:00
dmq: print protocol in the rpc output listing the nodes
---
Modified: src/modules/dmq/dmq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/684317aa54a5a3c5ddee13793551b8a…
Patch:
https://github.com/kamailio/kamailio/commit/684317aa54a5a3c5ddee13793551b8a…
---
diff --git a/src/modules/dmq/dmq.c b/src/modules/dmq/dmq.c
index 51ea35588e..4230e48a7f 100644
--- a/src/modules/dmq/dmq.c
+++ b/src/modules/dmq/dmq.c
@@ -365,10 +365,11 @@ static void dmq_rpc_list_nodes(rpc_t *rpc, void *c)
ip_addr2sbuf(&cur->ip_address, ip, IP6_MAX_STR_SIZE);
if(rpc->add(c, "{", &h) < 0)
goto error;
- if(rpc->struct_add(h, "SSsSdd", "host", &cur->uri.host,
"port",
- &cur->uri.port, "resolved_ip", ip, "status",
- dmq_get_status_str(cur->status), "last_notification",
- cur->last_notification, "local", cur->local)
+ if(rpc->struct_add(h, "SSssSdd", "host", &cur->uri.host,
"port",
+ &cur->uri.port, "proto", get_proto_name(cur->uri.proto),
+ "resolved_ip", ip, "status",
dmq_get_status_str(cur->status),
+ "last_notification", cur->last_notification,
+ "local", cur->local)
< 0)
goto error;
cur = cur->next;