summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-05-25 22:39:57 +0000
committerRussell Bryant <russell@russellbryant.com>2006-05-25 22:39:57 +0000
commit730f75cc784d90d834e8a5ecf0c2ac1e7b5d6759 (patch)
treee07e639cf0909800d70d7824c9280da701f7c8fc
parentf490777c41363899bec1c7e8de7ddca48511ec56 (diff)
only display a debug message if option_debug is in use
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30465 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_iax2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index e7e6cf3d6..125d908f0 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -7138,6 +7138,7 @@ retryowner2:
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);