[asterisk-commits] sruffell: branch sruffell/asterisk-1.4-faxtest r142279 - in /team/sruffell/as...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 9 16:07:36 CDT 2008
Author: sruffell
Date: Tue Sep 9 16:07:35 2008
New Revision: 142279
URL: http://svn.digium.com/view/asterisk?view=rev&rev=142279
Log:
The SRCUPDATE is called when the channel is bridged up, so we can flush all
the buffers then to throw out any 'drift' that acquired while the call was in
the process of being set up.
Modified:
team/sruffell/asterisk-1.4-faxtest/ (props changed)
team/sruffell/asterisk-1.4-faxtest/channels/chan_dahdi.c
Propchange: team/sruffell/asterisk-1.4-faxtest/
------------------------------------------------------------------------------
automerge = yes
Propchange: team/sruffell/asterisk-1.4-faxtest/
------------------------------------------------------------------------------
svnmerge-integrated = /branches/1.4:1-142277
Modified: team/sruffell/asterisk-1.4-faxtest/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/team/sruffell/asterisk-1.4-faxtest/channels/chan_dahdi.c?view=diff&rev=142279&r1=142278&r2=142279
==============================================================================
--- team/sruffell/asterisk-1.4-faxtest/channels/chan_dahdi.c (original)
+++ team/sruffell/asterisk-1.4-faxtest/channels/chan_dahdi.c Tue Sep 9 16:07:35 2008
@@ -5304,6 +5304,12 @@
res = 0;
break;
case AST_CONTROL_SRCUPDATE:
+ ast_log(LOG_WARNING, "Flushing buffers on channel '%s'\n", chan->name);
+ func = DAHDI_FLUSH_BOTH;
+ res = ioctl(p->subs[SUB_REAL].dfd, DAHDI_FLUSH, &func);
+ if (res) {
+ ast_log(LOG_WARNING, "Unable to flush buffer.\n");
+ }
res = 0;
break;
case -1:
More information about the asterisk-commits
mailing list