Fix verbose error (bug #2809)
authorMark Spencer <markster@digium.com>
Mon, 8 Nov 2004 15:05:53 +0000 (15:05 +0000)
committerMark Spencer <markster@digium.com>
Mon, 8 Nov 2004 15:05:53 +0000 (15:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4188 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 44c4bc1..6f1829e 100755 (executable)
@@ -4285,8 +4285,9 @@ static void reg_source_db(struct sip_peer *p)
                                                strncpy(p->username, u, sizeof(p->username) - 1);
                                                
                                        }
-                                       ast_verbose(VERBOSE_PREFIX_3 "SIP Seeding '%s' at %s@%s:%d for %d\n", p->name, 
-                                               p->username, ast_inet_ntoa(iabuf, sizeof(iabuf), in), atoi(c), atoi(d));
+                                       if (option_verbose > 2)
+                                               ast_verbose(VERBOSE_PREFIX_3 "SIP Seeding '%s' at %s@%s:%d for %d\n", p->name, 
+                                                                       p->username, ast_inet_ntoa(iabuf, sizeof(iabuf), in), atoi(c), atoi(d));
                                        expiry = atoi(d);
                                        memset(&p->addr, 0, sizeof(p->addr));
                                        p->addr.sin_family = AF_INET;