From 0eb265e6c6ee78ab3f8735ddc44fc8616ae41066 Mon Sep 17 00:00:00 2001 From: Federico Cabiddu Date: Wed, 8 Apr 2020 15:52:29 +0200 Subject: [PATCH] dialog: add dialog init, start and end timestamps to the output of dlg.briefing --- src/modules/dialog/dialog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c index 5dd941e7d0e..962fceeb52c 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;