Module: kamailio
Branch: master
Commit: 25c4b9eb56e0c75daaa98256c590947daa2b9906
URL:
https://github.com/kamailio/kamailio/commit/25c4b9eb56e0c75daaa98256c590947…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-07T13:00:54+02:00
dialog: print ref and end_ts in dialog list rpc output
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/25c4b9eb56e0c75daaa98256c590947…
Patch:
https://github.com/kamailio/kamailio/commit/25c4b9eb56e0c75daaa98256c590947…
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index 1689fc9d2b..9ae2ce8090 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -2000,15 +2000,17 @@ static inline void internal_rpc_print_dlg(rpc_t *rpc, void *c,
dlg_cell_t *dlg,
if (rpc->add(c, "{", &h) < 0) goto error;
- rpc->struct_add(h, "ddSSSdddddddd",
+ rpc->struct_add(h, "dddSSSddddddddd",
"h_entry", dlg->h_entry,
"h_id", dlg->h_id,
+ "ref", dlg->ref,
"call-id", &dlg->callid,
"from_uri", &dlg->from_uri,
"to_uri", &dlg->to_uri,
"state", dlg->state,
"start_ts", dlg->start_ts,
"init_ts", dlg->init_ts,
+ "end_ts", dlg->end_ts,
"timeout", dlg->tl.timeout ? time(0) + dlg->tl.timeout - get_ticks() :
0,
"lifetime", dlg->lifetime,
"dflags", dlg->dflags,