only display a debug message if option_debug is in use
authorRussell Bryant <russell@russellbryant.com>
Thu, 25 May 2006 22:39:57 +0000 (22:39 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 25 May 2006 22:39:57 +0000 (22:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30465 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index e7e6cf3..125d908 100644 (file)
@@ -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);