Fix verbose error (bug #2809)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
0364da8271
commit
6e85376343
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue