Small verbosity fix in chan_iax2.c from bkw_
authorJames Golovich <james@gnuinter.net>
Fri, 22 Oct 2004 15:02:13 +0000 (15:02 +0000)
committerJames Golovich <james@gnuinter.net>
Fri, 22 Oct 2004 15:02:13 +0000 (15:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4047 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 4eceb6e..eb704a9 100755 (executable)
@@ -2492,7 +2492,8 @@ static int iax2_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags
                        return -2;
                }
                if (c0->nativeformats != c1->nativeformats) {
-                       ast_verbose(VERBOSE_PREFIX_3 "Operating with different codecs, can't native bridge...\n");
+                       if (option_verbose > 2)
+                               ast_verbose(VERBOSE_PREFIX_3 "Operating with different codecs, can't native bridge...\n");
                        /* Remove from native mode */
                        lock_both(callno0, callno1);
                        iaxs[callno0]->bridgecallno = 0;