Browse code

dialog: print old state on dlg timeout

Daniel-Constantin Mierla authored on 27/07/2020 07:37:23
Showing 1 changed files
... ...
@@ -1645,10 +1645,11 @@ void dlg_ontimeout(struct dlg_tl *tl)
1645 1645
 	}
1646 1646
 
1647 1647
 	if (new_state==DLG_STATE_DELETED && old_state!=DLG_STATE_DELETED) {
1648
-		LM_WARN("timeout for dlg with CallID '%.*s' and tags '%.*s' '%.*s'\n",
1648
+		LM_WARN("dlg timeout - callid: '%.*s' tags: '%.*s' '%.*s' ostate: %d\n",
1649 1649
 			dlg->callid.len, dlg->callid.s,
1650 1650
 			dlg->tag[DLG_CALLER_LEG].len, dlg->tag[DLG_CALLER_LEG].s,
1651
-			dlg->tag[DLG_CALLEE_LEG].len, dlg->tag[DLG_CALLEE_LEG].s);
1651
+			dlg->tag[DLG_CALLEE_LEG].len, dlg->tag[DLG_CALLEE_LEG].s,
1652
+			old_state);
1652 1653
 
1653 1654
 		/* set end time */
1654 1655
 		dlg->end_ts = (unsigned int)(time(0));