Browse code

dialog: add dialog init, start and end timestamps to the output of dlg.briefing

Federico Cabiddu authored on 08/04/2020 13:52:29
Showing 1 changed files
... ...
@@ -3075,7 +3075,7 @@ static void rpc_dlg_briefing(rpc_t *rpc, void *c)
3075 3075
 				rpc->fault(c, 500, "Failed to create the structure");
3076 3076
 				return;
3077 3077
 			}
3078
-			if(rpc->struct_add(h, "ddSSSSSd",
3078
+			if(rpc->struct_add(h, "ddSSSSSdddd",
3079 3079
 					"h_entry", dlg->h_entry,
3080 3080
 					"h_id", dlg->h_id,
3081 3081
 					"from_uri", &dlg->from_uri,
... ...
@@ -3083,6 +3083,9 @@ static void rpc_dlg_briefing(rpc_t *rpc, void *c)
3083 3083
 					"call-id", &dlg->callid,
3084 3084
 					"from_tag", &dlg->tag[DLG_CALLER_LEG],
3085 3085
 					"to_tag", &dlg->tag[DLG_CALLER_LEG],
3086
+					"init_ts", dlg->init_ts,
3087
+					"start_ts", dlg->start_ts,
3088
+					"end_ts", dlg->end_ts,
3086 3089
 					"state", dlg->state) < 0) {
3087 3090
 				rpc->fault(c, 500, "Failed to add fields");
3088 3091
 				return;