Module: kamailio
Branch: master
Commit: 4351c22298fadfcb638dbeb6dba0933f30a829ce
URL:
https://github.com/kamailio/kamailio/commit/4351c22298fadfcb638dbeb6dba0933…
Author: shuntongzhang <shuntongzhang(a)gmail.com>
Committer: shuntongzhang <shuntongzhang(a)gmail.com>
Date: 2017-05-27T13:30:21+08:00
dmq: update output format of dmq.list_nodes
---
Modified: src/modules/dmq/dmq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4351c22298fadfcb638dbeb6dba0933…
Patch:
https://github.com/kamailio/kamailio/commit/4351c22298fadfcb638dbeb6dba0933…
---
diff --git a/src/modules/dmq/dmq.c b/src/modules/dmq/dmq.c
index c88afd57a0..f06111f830 100644
--- a/src/modules/dmq/dmq.c
+++ b/src/modules/dmq/dmq.c
@@ -354,11 +354,11 @@ static void dmq_rpc_list_nodes(rpc_t *rpc, void *c)
memset(ip, 0, IP6_MAX_STR_SIZE + 1);
ip_addr2sbuf(&cur->ip_address, ip, IP6_MAX_STR_SIZE);
if (rpc->add(c, "{", &h) < 0) goto error;
- if (rpc->struct_add(h, "SSsddd",
+ if (rpc->struct_add(h, "SSsSdd",
"host", &cur->uri.host,
"port", &cur->uri.port,
"resolved_ip", ip,
- "status", cur->status,
+ "status", get_status_str(cur->status),
"last_notification", cur->last_notification,
"local", cur->local) < 0) goto error;
cur = cur->next;