Module: kamailio
Branch: 5.4
Commit: ecedb702cacc4b46c474d6f48e6774985fe484e3
URL:
https://github.com/kamailio/kamailio/commit/ecedb702cacc4b46c474d6f48e67749…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-07-27T09:41:01+02:00
dialog: print old state on dlg timeout
(cherry picked from commit 06b7e416756e1711edef6db683cef35824f4b2a5)
---
Modified: src/modules/dialog/dlg_handlers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ecedb702cacc4b46c474d6f48e67749…
Patch:
https://github.com/kamailio/kamailio/commit/ecedb702cacc4b46c474d6f48e67749…
---
diff --git a/src/modules/dialog/dlg_handlers.c b/src/modules/dialog/dlg_handlers.c
index 4c19e98417..7cf6b7ba7a 100644
--- a/src/modules/dialog/dlg_handlers.c
+++ b/src/modules/dialog/dlg_handlers.c
@@ -1645,10 +1645,11 @@ void dlg_ontimeout(struct dlg_tl *tl)
}
if (new_state==DLG_STATE_DELETED && old_state!=DLG_STATE_DELETED) {
- LM_WARN("timeout for dlg with CallID '%.*s' and tags '%.*s'
'%.*s'\n",
+ LM_WARN("dlg timeout - callid: '%.*s' tags: '%.*s' '%.*s'
ostate: %d\n",
dlg->callid.len, dlg->callid.s,
dlg->tag[DLG_CALLER_LEG].len, dlg->tag[DLG_CALLER_LEG].s,
- dlg->tag[DLG_CALLEE_LEG].len, dlg->tag[DLG_CALLEE_LEG].s);
+ dlg->tag[DLG_CALLEE_LEG].len, dlg->tag[DLG_CALLEE_LEG].s,
+ old_state);
/* set end time */
dlg->end_ts = (unsigned int)(time(0));