mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Add a massive set of changes for converting to use the ast_debug() macro.
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -193,8 +193,7 @@ static int mp3_exec(struct ast_channel *chan, void *data)
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "No more mp3\n");
|
||||
ast_debug(1, "No more mp3\n");
|
||||
res = 0;
|
||||
break;
|
||||
}
|
||||
@@ -202,22 +201,19 @@ static int mp3_exec(struct ast_channel *chan, void *data)
|
||||
} else {
|
||||
ms = ast_waitfor(chan, ms);
|
||||
if (ms < 0) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Hangup detected\n");
|
||||
ast_debug(1, "Hangup detected\n");
|
||||
res = -1;
|
||||
break;
|
||||
}
|
||||
if (ms) {
|
||||
f = ast_read(chan);
|
||||
if (!f) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Null frame == hangup() detected\n");
|
||||
ast_debug(1, "Null frame == hangup() detected\n");
|
||||
res = -1;
|
||||
break;
|
||||
}
|
||||
if (f->frametype == AST_FRAME_DTMF) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "User pressed a key\n");
|
||||
ast_debug(1, "User pressed a key\n");
|
||||
ast_frfree(f);
|
||||
res = 0;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user