Module: kamailio
Branch: master
Commit: 9eb117abe34abbaa1ff228df3d81506b46933e53
URL:
https://github.com/kamailio/kamailio/commit/9eb117abe34abbaa1ff228df3d81506…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-06-11T10:57:31+02:00
dispatcher: print oc rate and time in rpc list full
---
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9eb117abe34abbaa1ff228df3d81506…
Patch:
https://github.com/kamailio/kamailio/commit/9eb117abe34abbaa1ff228df3d81506…
---
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index c7ea8380543..4726992a559 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -1881,7 +1881,7 @@ int ds_rpc_print_set(
rpc->fault(ctx, 500, "Internal error creating dest struct");
return -1;
}
- if(rpc->struct_add(wh, "SSdddSSS", "BODY",
+ if(rpc->struct_add(wh, "SSdddSSSujj", "BODY",
&(node->dlist[j].attrs.body), "DUID",
(node->dlist[j].attrs.duid.s)
? &(node->dlist[j].attrs.duid)
@@ -1899,7 +1899,11 @@ int ds_rpc_print_set(
"OBPROXY",
(node->dlist[j].attrs.obproxy.s)
? &(node->dlist[j].attrs.obproxy)
- : &data)
+ : &data,
+ "OCRATE", node->dlist[j].attrs.ocrate, "OCTIME_SEC",
+ (unsigned long)node->dlist[j].octime.tv_sec,
+ "OCTIME_USEC",
+ (unsigned long)node->dlist[j].octime.tv_usec)
< 0) {
rpc->fault(ctx, 500, "Internal error creating attrs struct");
return -1;