--- chan_sip.c.dist 2004-05-09 19:40:49.000000000 -0400 +++ chan_sip.c 2004-05-11 17:07:47.000000000 -0400 @@ -4519,10 +4519,10 @@ } } if (user && sip_debug_test_addr(sin)) - ast_verbose("Found user '%s'\n", user->name); + ast_log(LOG_DEBUG, "Found user '%s'\n", user->name); } else { if (user && sip_debug_test_addr(sin)) - ast_verbose("Found user '%s', but fails host access\n", user->name); + ast_log(LOG_DEBUG, "Found user '%s', but fails host access\n", user->name); user = NULL; } ast_mutex_unlock(&userl.lock); @@ -4537,7 +4537,7 @@ ast_mutex_unlock(&peerl.lock); if (peer) { if (sip_debug_test_addr(sin)) - ast_verbose("Found peer '%s'\n", peer->name); + ast_log(LOG_DEBUG, "Found peer '%s'\n", peer->name); /* Take the peer */ p->nat = peer->nat; if (p->rtp) { @@ -4583,7 +4583,7 @@ } } else if (sip_debug_test_addr(sin)) - ast_verbose("Found no matching peer or user for '%s:%d'\n", inet_ntoa(p->recv.sin_addr), ntohs(p->recv.sin_port)); + ast_log(LOG_DEBUG, "Found no matching peer or user for '%s:%d'\n", inet_ntoa(p->recv.sin_addr), ntohs(p->recv.sin_port)); } return res; @@ -5069,7 +5069,7 @@ if (p->owner) { /* PBX call */ if (!ast_strlen_zero(buf)) { if (sipdebug) - ast_verbose("* DTMF received: '%c'\n", buf[0]); + ast_log(LOG_DEBUG, "* DTMF received: '%c'\n", buf[0]); if (buf[0] == '*') event = 10; else if (buf[0] == '#') @@ -6313,12 +6313,12 @@ req.data[res] = '\0'; req.len = res; if (sip_debug_test_addr(&sin)) - ast_verbose("\n\nSip read: \n%s\n", req.data); + ast_log(LOG_DEBUG, "\n\nSip read: \n%s\n", req.data); if (pedanticsipchecking) req.len = lws2sws(req.data, req.len); parse(&req); if (sip_debug_test_addr(&sin)) - ast_verbose("%d headers, %d lines\n", req.headers, req.lines); + ast_log(LOG_DEBUG, "%d headers, %d lines\n", req.headers, req.lines); if (req.headers < 2) { /* Must have at least two headers */ return 1;