Browse code

additional logs which should help to explain why we sometimes see errors like these: May 31 14:05:49 proxy00 /usr/local/sbin/ser[9043]: Warning: run_failure_handlers: no UAC support

Jiri Kuthan authored on 31/05/2004 17:12:39
Showing 1 changed files
... ...
@@ -608,12 +608,19 @@ static inline int run_failure_handlers(struct cell *t, struct sip_msg *rpl,
608 608
 
609 609
 	/* failure_route for a local UAC? */
610 610
 	if (!shmem_msg) {
611
-		LOG(L_WARN, "Warning: run_failure_handlers: no UAC support\n");
612
-		return 0;
613
-	}
611
+		LOG(L_WARN, 
612
+			"Warning: run_failure_handlers: no UAC support (%d, %d) \n",
613
+			t->on_negative, 
614
+			t->tmcb_hl.reg_types);
615
+                return 0;
616
+        }
614 617
 
615 618
 	/* don't start faking anything if we don't have to */
616 619
 	if ( !has_tran_tmcbs( t, TMCB_ON_FAILURE) && !t->on_negative ) {
620
+		LOG(L_WARN, 
621
+			"Warning: run_failure_handlers: no negative handler (%d, %d)\n",
622
+			t->on_negative, 
623
+			t->tmcb_hl.reg_types);
617 624
 		return 1;
618 625
 	}
619 626