Module: kamailio
Branch: master
Commit: aa79588ceacaaae118230bd06b0eb7aadf9b31f3
URL:
https://github.com/kamailio/kamailio/commit/aa79588ceacaaae118230bd06b0eb7a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-18T09:09:01+02:00
dispatcher: added ocidx to the rpc response
---
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/aa79588ceacaaae118230bd06b0eb7a…
Patch:
https://github.com/kamailio/kamailio/commit/aa79588ceacaaae118230bd06b0eb7a…
---
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 3fd941c21c4..74ee7cc8e8d 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -1869,13 +1869,14 @@ int ds_rpc_print_set(
ipbuf[0] = '\0';
ip_addr2sbufz(
&node->dlist[j].ip_address, ipbuf, IP_ADDR_MAX_STRZ_SIZE);
- if(rpc->struct_add(vh, "Ssddjjujj", "HOST",
&node->dlist[j].host,
+ if(rpc->struct_add(vh, "Ssddjjujjj", "HOST",
&node->dlist[j].host,
"IPADDR", ipbuf, "PORT", (int)node->dlist[j].port,
"PROTOID", (int)node->dlist[j].proto, "DNSTIME_SEC",
(unsigned long)node->dlist[j].dnstime.tv_sec,
"DNSTIME_USEC",
(unsigned long)node->dlist[j].dnstime.tv_usec, "OCRATE",
- node->dlist[j].attrs.ocrate, "OCTIME_SEC",
+ node->dlist[j].attrs.ocrate, "OCIDX",
+ (unsigned long)node->dlist[j].ocidx, "OCTIME_SEC",
(unsigned long)node->dlist[j].octime.tv_sec,
"OCTIME_USEC",
(unsigned long)node->dlist[j].octime.tv_usec)