[asterisk-commits] branch oej/rtptiming r16466 -
/team/oej/rtptiming/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Mar 29 22:42:55 MST 2006
Author: oej
Date: Wed Mar 29 23:42:54 2006
New Revision: 16466
URL: http://svn.digium.com/view/asterisk?rev=16466&view=rev
Log:
Debug fixes
Modified:
team/oej/rtptiming/channel.c
Modified: team/oej/rtptiming/channel.c
URL: http://svn.digium.com/view/asterisk/team/oej/rtptiming/channel.c?rev=16466&r1=16465&r2=16466&view=diff
==============================================================================
--- team/oej/rtptiming/channel.c (original)
+++ team/oej/rtptiming/channel.c Wed Mar 29 23:42:54 2006
@@ -1984,7 +1984,7 @@
int (*generate)(struct ast_channel *chan, void *tmp, int datalen, int samples);
if (chan->timingfunc) {
- if (option_debug)
+ if (option_debug > 1)
ast_log(LOG_DEBUG, "Generator got voice, switching to phase locked mode\n");
ast_settimeout(chan, 0, NULL, NULL);
}
@@ -2002,7 +2002,8 @@
} else if (f->frametype == AST_FRAME_CNG) {
if (chan->generator && !chan->timingfunc && (chan->timingfd > -1)) {
- ast_log(LOG_DEBUG, "Generator got CNG, switching to timed mode\n");
+ if (option_debug > 1)
+ ast_log(LOG_DEBUG, "Generator got CNG, switching to timed mode\n");
ast_settimeout(chan, 160, generator_force, chan);
}
}
More information about the asterisk-commits
mailing list