[asterisk-commits] trunk r30465 - /trunk/channels/chan_iax2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 25 15:39:57 MST 2006


Author: russell
Date: Thu May 25 17:39:57 2006
New Revision: 30465

URL: http://svn.digium.com/view/asterisk?rev=30465&view=rev
Log:
only display a debug message if option_debug is in use

Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?rev=30465&r1=30464&r2=30465&view=diff
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Thu May 25 17:39:57 2006
@@ -7138,6 +7138,7 @@
 					iax2_destroy_nolock(fr->callno);
 					peer->callno = 0;
 					/* Try again eventually */
+					if (option_debug)
 						ast_log(LOG_DEBUG, "Peer lastms %d, historicms %d, maxms %d\n", peer->lastms, peer->historicms, peer->maxms);
 					if ((peer->lastms < 0)  || (peer->historicms > peer->maxms)) 
 						peer->pokeexpire = ast_sched_add(sched, peer->pokefreqnotok, iax2_poke_peer_s, peer);



More information about the asterisk-commits mailing list