Index: modules/dialog/dlg_hash.c
===================================================================
--- modules/dialog/dlg_hash.c	(revision 5441)
+++ modules/dialog/dlg_hash.c	(working copy)
@@ -395,8 +395,17 @@
 
 	dlg_lock( d_table, d_entry);
 
+	LM_DBG("input ci=<%.*s>(%d), tt=<%.*s>(%d), ft=<%.*s>(%d)\n",
+		callid->len,callid->s, callid->len,
+		ftag->len, ftag->s, ftag->len,
+		ttag->len, ttag->s, ttag->len);
+
 	for( dlg = d_entry->first ; dlg ; dlg = dlg->next ) {
 		/* Check callid / fromtag / totag */
+		LM_DBG("DLG: ci=<%.*s>(%d), tt=<%.*s>(%d), ft=<%.*s>(%d)\n",
+			dlg->callid.len,dlg->callid.s, dlg->callid.len,
+			dlg->tag[0].len,dlg->tag[0].s, dlg->tag[0].len,
+			dlg->tag[1].len,dlg->tag[1].s, dlg->tag[1].len);
 		if (match_dialog( dlg, callid, ftag, ttag, dir)==1) {
 			if (dlg->state==DLG_STATE_DELETED) {
 				dlg_unlock( d_table, d_entry);

