mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-20 11:43:52 +00:00
Convert several DEBUG logs into ast_debug.
(closes issue #12444) Reported by: IgorG Patches: channel_c_debug.diff uploaded by IgorG (license 20) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2260,8 +2260,7 @@ static void ast_read_generator_actions(struct ast_channel *chan, struct ast_fram
|
|||||||
int samples;
|
int samples;
|
||||||
|
|
||||||
if (chan->timingfunc) {
|
if (chan->timingfunc) {
|
||||||
if (option_debug > 1)
|
ast_debug(1, "Generator got voice, switching to phase locked mode\n");
|
||||||
ast_log(LOG_DEBUG, "Generator got voice, switching to phase locked mode\n");
|
|
||||||
ast_settimeout(chan, 0, NULL, NULL);
|
ast_settimeout(chan, 0, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2291,15 +2290,13 @@ static void ast_read_generator_actions(struct ast_channel *chan, struct ast_fram
|
|||||||
ast_channel_lock(chan);
|
ast_channel_lock(chan);
|
||||||
chan->generatordata = tmp;
|
chan->generatordata = tmp;
|
||||||
if (res) {
|
if (res) {
|
||||||
if (option_debug > 1)
|
ast_debug(1, "Auto-deactivating generator\n");
|
||||||
ast_log(LOG_DEBUG, "Auto-deactivating generator\n");
|
|
||||||
ast_deactivate_generator(chan);
|
ast_deactivate_generator(chan);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (f->frametype == AST_FRAME_CNG) {
|
} else if (f->frametype == AST_FRAME_CNG) {
|
||||||
if (chan->generator && !chan->timingfunc && (chan->timingfd > -1)) {
|
if (chan->generator && !chan->timingfunc && (chan->timingfd > -1)) {
|
||||||
if (option_debug > 1)
|
ast_debug(1, "Generator got CNG, switching to timed mode\n");
|
||||||
ast_log(LOG_DEBUG, "Generator got CNG, switching to timed mode\n");
|
|
||||||
ast_settimeout(chan, 160, generator_force, chan);
|
ast_settimeout(chan, 160, generator_force, chan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user