Module: kamailio
Branch: master
Commit: 0ef775950e35505279715cd5546e70ed26a44c08
URL: 
https://github.com/kamailio/kamailio/commit/0ef775950e35505279715cd5546e70ed26a44c08

Author: Charles Chance <[email protected]>
Committer: GitHub <[email protected]>
Date: 2017-05-27T11:54:25+01:00

Merge pull request #1139 from zhangst/master

dmq: update output format of dmq.list_nodes

---

Modified: src/modules/dmq/dmq.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/0ef775950e35505279715cd5546e70ed26a44c08.diff
Patch: 
https://github.com/kamailio/kamailio/commit/0ef775950e35505279715cd5546e70ed26a44c08.patch

---

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;


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to