[asterisk-commits] branch oej/rtptiming r16463 -
/team/oej/rtptiming/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Mar 29 22:31:46 MST 2006
Author: oej
Date: Wed Mar 29 23:31:45 2006
New Revision: 16463
URL: http://svn.digium.com/view/asterisk?rev=16463&view=rev
Log:
Put CNG back (markster's requrest)
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=16463&r1=16462&r2=16463&view=diff
==============================================================================
--- team/oej/rtptiming/channel.c (original)
+++ team/oej/rtptiming/channel.c Wed Mar 29 23:31:45 2006
@@ -1993,6 +1993,11 @@
ast_log(LOG_DEBUG, "Auto-deactivating generator\n");
ast_deactivate_generator(chan);
}
+ } 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");
+ ast_settimeout(chan, 160, generator_force, chan);
+ }
}
}
}
More information about the asterisk-commits
mailing list