Browse code

dialog: log no-ack timer disconnection

Julien Chavanton authored on 24/07/2020 21:51:02
Showing 1 changed files
... ...
@@ -243,6 +243,10 @@ int dlg_clean_run(ticks_t ti)
243 243
 				unlink_unsafe_dlg(&d_table->entries[i], tdlg);
244 244
 				destroy_dlg(tdlg);
245 245
 			}
246
+			if(tdlg->state==DLG_STATE_CONFIRMED_NA && tdlg->start_ts>0 && tdlg->start_ts<tm-60) {
247
+				LM_NOTICE("dialog disconnection no-ACK call-id[%.*s][%u]<[%u - 60]\n",
248
+						tdlg->callid.len, tdlg->callid.s, tdlg->start_ts, tm);
249
+			}
246 250
 			if(tdlg->state==DLG_STATE_CONFIRMED_NA && tdlg->start_ts>0
247 251
 					&& tdlg->start_ts<tm-dlg_noack_timeout) {
248 252
 				if(update_dlg_timer(&tdlg->tl, 10)<0) {