Module: kamailio
Branch: master
Commit: 0eb265e6c6ee78ab3f8735ddc44fc8616ae41066
URL:
https://github.com/kamailio/kamailio/commit/0eb265e6c6ee78ab3f8735ddc44fc86…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2020-04-08T16:05:37+02:00
dialog: add dialog init, start and end timestamps to the output of dlg.briefing
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0eb265e6c6ee78ab3f8735ddc44fc86…
Patch:
https://github.com/kamailio/kamailio/commit/0eb265e6c6ee78ab3f8735ddc44fc86…
---
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;