[asterisk-commits] dvossel: branch 1.4 r226688 - /branches/1.4/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 2 09:16:34 CST 2009


Author: dvossel
Date: Mon Nov  2 09:16:30 2009
New Revision: 226688

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=226688
Log:
changes calltoken debug messages from LOG_NOTICE to LOG_DEBUG like they are supposed to be

(closes issue #16144)
Reported by: aragon

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=226688&r1=226687&r2=226688
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Mon Nov  2 09:16:30 2009
@@ -1899,7 +1899,7 @@
 	if ((addr_range = ao2_callback(callno_limits, 0, addr_range_match_address_cb, &sin))) {
 		limit = addr_range->limit;
 		if (option_debug) {
-			ast_log(LOG_NOTICE, "custom addr_range %d found for %s\n", limit, ast_inet_ntoa(sin.sin_addr));
+			ast_log(LOG_DEBUG, "custom addr_range %d found for %s\n", limit, ast_inet_ntoa(sin.sin_addr));
 		}
 		ao2_ref(addr_range, -1);
 	}
@@ -1917,7 +1917,7 @@
 
 	set_peercnt_limit(peercnt);
 	if (option_debug) {
-		ast_log(LOG_NOTICE, "Reset limits for peercnts table\n");
+		ast_log(LOG_DEBUG, "Reset limits for peercnts table\n");
 	}
 	return 0;
 }
@@ -1953,7 +1953,7 @@
 			set_peercnt_limit(peercnt);
 		}
 		if (option_debug) {
-			ast_log(LOG_NOTICE, "peercnt entry %s modified limit:%d registered:%d", ast_inet_ntoa(sin->sin_addr), peercnt->limit, peercnt->reg);
+			ast_log(LOG_DEBUG, "peercnt entry %s modified limit:%d registered:%d", ast_inet_ntoa(sin->sin_addr), peercnt->limit, peercnt->reg);
 		}
 		ao2_ref(peercnt, -1); /* decrement ref from find */
 	}
@@ -2002,7 +2002,7 @@
 	if (peercnt->limit > peercnt->cur) {
 		peercnt->cur++;
 		if (option_debug) {
-			ast_log(LOG_NOTICE, "ip callno count incremented to %d for %s\n", peercnt->cur, ast_inet_ntoa(sin->sin_addr));
+			ast_log(LOG_DEBUG, "ip callno count incremented to %d for %s\n", peercnt->cur, ast_inet_ntoa(sin->sin_addr));
 		}
 	} else { /* max num call numbers for this peer has been reached! */
 		ast_log(LOG_ERROR, "maxcallnumber limit of %d for %s has been reached!\n", peercnt->limit, ast_inet_ntoa(sin->sin_addr));
@@ -2034,7 +2034,7 @@
 		ao2_lock(peercnts);
 		peercnt->cur--;
 		if (option_debug) {
-			ast_log(LOG_NOTICE, "ip callno count decremented to %d for %s\n", peercnt->cur, ast_inet_ntoa(sin.sin_addr));
+			ast_log(LOG_DEBUG, "ip callno count decremented to %d for %s\n", peercnt->cur, ast_inet_ntoa(sin.sin_addr));
 		}
 		/* if this was the last connection from the peer remove it from table */
 		if (peercnt->cur == 0) {
@@ -2325,7 +2325,7 @@
 	if ((peercnt = ao2_find(peercnts, &tmp, OBJ_POINTER))) {
 		/* refcount is incremented with ao2_find.  keep that ref for the scheduler */
 		if (option_debug) {
-			ast_log(LOG_NOTICE, "schedule decrement of callno used for %s in %d seconds\n", ast_inet_ntoa(sin->sin_addr), MIN_REUSE_TIME);
+			ast_log(LOG_DEBUG, "schedule decrement of callno used for %s in %d seconds\n", ast_inet_ntoa(sin->sin_addr), MIN_REUSE_TIME);
 		}
 		i = iax2_sched_add(sched, MIN_REUSE_TIME * 1000, peercnt_remove_cb, peercnt);
 		if (i == -1) {




More information about the asterisk-commits mailing list