Module: kamailio
Branch: master
Commit: 84a4d8d266d7642e588f39fa1632fa46e6b47b42
URL:
https://github.com/kamailio/kamailio/commit/84a4d8d266d7642e588f39fa1632fa4…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-04-09T05:14:47+02:00
Merge pull request #2279 from kamailio/grumvalski/dlg_briefing_ext
dialog: add dialog init, start end end timestamps to the output of dlâ¦
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/84a4d8d266d7642e588f39fa1632fa4…
Patch:
https://github.com/kamailio/kamailio/commit/84a4d8d266d7642e588f39fa1632fa4…
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index 5dd941e7d0..962fceeb52 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -3075,7 +3075,7 @@ static void rpc_dlg_briefing(rpc_t *rpc, void *c)
rpc->fault(c, 500, "Failed to create the structure");
return;
}
- if(rpc->struct_add(h, "ddSSSSSd",
+ if(rpc->struct_add(h, "ddSSSSSdddd",
"h_entry", dlg->h_entry,
"h_id", dlg->h_id,
"from_uri", &dlg->from_uri,
@@ -3083,6 +3083,9 @@ static void rpc_dlg_briefing(rpc_t *rpc, void *c)
"call-id", &dlg->callid,
"from_tag", &dlg->tag[DLG_CALLER_LEG],
"to_tag", &dlg->tag[DLG_CALLER_LEG],
+ "init_ts", dlg->init_ts,
+ "start_ts", dlg->start_ts,
+ "end_ts", dlg->end_ts,
"state", dlg->state) < 0) {
rpc->fault(c, 500, "Failed to add fields");
return;