[svn-commits] murf: branch murf/bug11210 r103792 - /team/murf/bug11210/channels/chan_iax2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Feb 18 15:37:52 CST 2008


Author: murf
Date: Mon Feb 18 15:37:51 2008
New Revision: 103792

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103792
Log:
Get rid of some noisy debugs

Modified:
    team/murf/bug11210/channels/chan_iax2.c

Modified: team/murf/bug11210/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug11210/channels/chan_iax2.c?view=diff&rev=103792&r1=103791&r2=103792
==============================================================================
--- team/murf/bug11210/channels/chan_iax2.c (original)
+++ team/murf/bug11210/channels/chan_iax2.c Mon Feb 18 15:37:51 2008
@@ -1648,7 +1648,6 @@
 		tmp = NULL;
 		return NULL;
 	}
-	ast_log(LOG_NOTICE,"New IAX pvt created(%p).\n", tmp);
 	tmp->prefs = prefs;
 	tmp->pingid = -1;
 	tmp->lagid = -1;
@@ -2418,7 +2417,6 @@
 
 static void iax2_destroy_helper(struct chan_iax2_pvt *pvt)
 {
-	ast_log(LOG_NOTICE,"destroy helper called for callno %d (%p)\n", pvt->callno, pvt);
 	/* Decrement AUTHREQ count if needed */
 	if (ast_test_flag(pvt, IAX_MAXAUTHREQ)) {
 		struct iax2_user *user;
@@ -2452,8 +2450,6 @@
 	struct ast_channel *c = NULL;
 	struct chan_iax2_pvt *pvt = iaxs[callno];
 
-	ast_log(LOG_NOTICE,"predestroy called for callno %d (%p)\n", callno, pvt);
-
 	if (!pvt)
 		return -1;
 
@@ -2466,13 +2462,10 @@
 		int zz = PTR_TO_CALLNO(c->tech_pvt);
 		struct chan_iax2_pvt *pvt = iaxs[zz];
 		
-		ast_log(LOG_NOTICE,"predestroy: channel has pvt index of %d (%p)\n", zz, pvt);
 		c->tech_pvt = NULL;
 		if (pvt)
 			call_unref(pvt, "Nulled out the pvt index stored in the channel");
 		
-		ast_log(LOG_NOTICE,"predestroy: about to force hangup for callno %d, then null out pvt->owner field\n", callno);
-		
 		iax2_queue_hangup(callno);
 		pvt->owner = NULL;
 		ast_module_unref(ast_module_info->self);
@@ -2486,9 +2479,7 @@
 {
 	struct chan_iax2_pvt *pvt = p2;
 	/* gotta free up the stringfields */
-	ast_log(LOG_NOTICE,"Destry_byptr called\n");
 	ast_string_field_free_memory(pvt);
-	ast_log(LOG_NOTICE,"Freeing %p pvt struct(%d)\n", pvt, pvt->callno);
 	ast_free(pvt);
 }
 
@@ -2515,7 +2506,6 @@
 	struct chan_iax2_pvt *pvt = NULL;
 	struct iax_frame *cur = NULL;
 	struct ast_channel *owner = NULL;
-	ast_log(LOG_NOTICE,"Iax2_unlink called for %d\n", callno);
 	pvt = iaxs[callno];
 
 	if (pvt)
@@ -2605,8 +2595,6 @@
 	struct iax_frame *cur = NULL;
 	struct ast_channel *owner = NULL;
 
-	ast_log(LOG_NOTICE,"Iax2_destroy called for %d\n", callno);
-	
 retry:
 	pvt = iaxs[callno];
 	lastused[callno] = ast_tvnow();
@@ -2704,7 +2692,6 @@
 						send_command(iaxs[callno], AST_FRAME_IAX, IAX_COMMAND_TXREJ, 0, NULL, 0, -1);
 					} else if (f->final) {
 						if (f->final) {
-							ast_log(LOG_NOTICE,"Calling Iax2_destroy\n");
 							iax2_unlink(callno);
 						}
 					} else {
@@ -2726,7 +2713,6 @@
 								iaxs[callno]->reg->regstate = REG_STATE_TIMEOUT;
 								iaxs[callno]->reg->refresh = IAX_DEFAULT_REG_EXPIRE;
 							}
-							ast_log(LOG_NOTICE,"Calling Iax2_destroy\n");
 							iax2_unlink(callno);
 						}
 					}
@@ -4066,7 +4052,6 @@
 	int alreadygone;
  	struct iax_ie_data ied;
  	memset(&ied, 0, sizeof(ied));
-	ast_log(LOG_NOTICE,"Hangup called for callno %d\n", callno);
 	ast_mutex_lock(&iaxsl[callno]);
 	if (callno && iaxs[callno]) {
 		ast_debug(1, "We're hanging up %s now...\n", c->name);
@@ -4081,12 +4066,10 @@
 			}
 		}
 		/* Explicitly predestroy it */
-		ast_log(LOG_NOTICE,"Hangup calling predestroy  for callno %d\n", callno);
 		iax2_predestroy(callno);
 		/* If we were already gone to begin with, destroy us now */
 		if (alreadygone && iaxs[callno]) {
 			ast_debug(1, "Really destroying %s now...\n", c->name);
-			ast_log(LOG_NOTICE,"Hangup Calling Iax2_destroy\n");
 			iax2_unlink(callno);
 		}
 	}
@@ -6038,7 +6021,6 @@
 {
 	int call_num = i->callno;
 	/* It is assumed that the callno has already been locked */
-	ast_log(LOG_NOTICE,"send_command_final calling predestroy  for callno %d\n", i->callno);
 	iax2_predestroy(i->callno);
 	if (!iaxs[call_num])
 		return -1;




More information about the svn-commits mailing list