only display a debug message if iaxdebug is enabled as well (issue #6673)
authorRussell Bryant <russell@russellbryant.com>
Tue, 28 Mar 2006 19:31:41 +0000 (19:31 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 28 Mar 2006 19:31:41 +0000 (19:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15702 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 0ff1c35..f00167b 100644 (file)
@@ -6735,7 +6735,7 @@ static int socket_process(struct iax2_thread *thread)
                                                                        if (iaxs[fr.callno]->last < fr.ts) {
                                                                                iaxs[fr.callno]->last = fr.ts;
 #if 1
-                                                                               if (option_debug)
+                                                                               if (option_debug && iaxdebug)
                                                                                        ast_log(LOG_DEBUG, "For call=%d, set last=%d\n", fr.callno, fr.ts);
 #endif
                                                                        }