Index: app_meetme.c =================================================================== --- app_meetme.c (revision 69516) +++ app_meetme.c (working copy) @@ -2134,8 +2134,8 @@ } } else if (f->frametype == AST_FRAME_NULL) { /* Ignore NULL frames. It is perfectly normal to get these if the person is muted. */ - } else if (option_debug) { - ast_log(LOG_DEBUG, + } else { + ast_debug(1, "Got unrecognized frame on channel %s, f->frametype=%d,f->subclass=%d\n", chan->name, f->frametype, f->subclass); } Index: app_test.c =================================================================== --- app_test.c (revision 69516) +++ app_test.c (working copy) @@ -283,7 +283,7 @@ else res = -1; } - if (option_debug && !res ) { + if (!res) { /* Step 12: Hangup! */ ast_debug(1, "TestClient: 12. Hangup\n"); } Index: app_minivm.c =================================================================== --- app_minivm.c (revision 69516) +++ app_minivm.c (working copy) @@ -941,8 +941,7 @@ snprintf(tmpcmd, sizeof(tmpcmd), "sox -v %.4f %s.%s %s.%s", vmu->volgain, filename, format, newtmp, format); ast_safe_system(tmpcmd); finalfilename = newtmp; - if (option_debug > 2) - ast_log (LOG_DEBUG, "-- VOLGAIN: Stored at: %s.%s - Level: %.4f - Mailbox: %s\n", filename, format, vmu->volgain, vmu->username); + ast_debug(3, "-- VOLGAIN: Stored at: %s.%s - Level: %.4f - Mailbox: %s\n", filename, format, vmu->volgain, vmu->username); } else { finalfilename = ast_strdupa(filename); }