Module: kamailio
Branch: master
Commit: 604fd2787620de87585ba17fb6a6961b3b999331
URL:
https://github.com/kamailio/kamailio/commit/604fd2787620de87585ba17fb6a6961…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-31T16:01:38+02:00
dispatcher: always return attrs in rpc list full mode
---
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/604fd2787620de87585ba17fb6a6961…
Patch:
https://github.com/kamailio/kamailio/commit/604fd2787620de87585ba17fb6a6961…
---
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 74ee7cc8e8d..5d61d00ffd8 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -1886,7 +1886,8 @@ int ds_rpc_print_set(
}
}
- if(mode != DS_RPC_PRINT_SHORT && node->dlist[j].attrs.body.s != NULL) {
+ if((mode != DS_RPC_PRINT_SHORT && node->dlist[j].attrs.body.s != NULL)
+ || (mode == DS_RPC_PRINT_FULL)) {
if(rpc->struct_add(vh, "{", "ATTRS", &wh) < 0) {
rpc->fault(ctx, 500, "Internal error creating dest struct");
return -1;