Don't don't show verbose 3 message when verbose not set
authorMark Spencer <markster@digium.com>
Wed, 3 Dec 2003 15:06:41 +0000 (15:06 +0000)
committerMark Spencer <markster@digium.com>
Wed, 3 Dec 2003 15:06:41 +0000 (15:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1820 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 124bbe1..685020d 100755 (executable)
@@ -3515,7 +3515,8 @@ static void reg_source_db(struct iax2_peer *p)
                                if (d) {
                                        *d = '\0';
                                        d++;
-                                       ast_verbose(VERBOSE_PREFIX_3 "Seeding '%s' at %s:%d for %d\n", p->name, 
+                                       if (option_verbose > 2)
+                                               ast_verbose(VERBOSE_PREFIX_3 "Seeding '%s' at %s:%d for %d\n", p->name, 
                                                inet_ntoa(in), atoi(c), atoi(d));
                                        iax2_poke_peer(p);
                                        p->expirey = atoi(d);