Module: kamailio Branch: master Commit: 06b7e416756e1711edef6db683cef35824f4b2a5 URL: https://github.com/kamailio/kamailio/commit/06b7e416756e1711edef6db683cef358...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-07-27T09:37:23+02:00
dialog: print old state on dlg timeout
---
Modified: src/modules/dialog/dlg_handlers.c
---
Diff: https://github.com/kamailio/kamailio/commit/06b7e416756e1711edef6db683cef358... Patch: https://github.com/kamailio/kamailio/commit/06b7e416756e1711edef6db683cef358...
---
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));