[asterisk-commits] file: trunk r63699 - in /trunk: ./ main/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed May 9 12:24:28 MST 2007
Author: file
Date: Wed May 9 14:24:27 2007
New Revision: 63699
URL: http://svn.digium.com/view/asterisk?view=rev&rev=63699
Log:
Merged revisions 63698 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r63698 | file | 2007-05-09 15:22:39 -0400 (Wed, 09 May 2007) | 2 lines
Use the DTMF frame on the channel when returning a DTMF frame from AST_FRAME_NULL or AST_FRAME_VOICE.
........
Modified:
trunk/ (props changed)
trunk/main/channel.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=63699&r1=63698&r2=63699
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed May 9 14:24:27 2007
@@ -2292,6 +2292,8 @@
struct timeval now = ast_tvnow();
if (ast_tvdiff_ms(now, chan->dtmf_tv) >= chan->emulate_dtmf_duration) {
chan->emulate_dtmf_duration = 0;
+ ast_frfree(f);
+ f = &chan->dtmff;
f->frametype = AST_FRAME_DTMF_END;
f->subclass = chan->emulate_dtmf_digit;
f->len = ast_tvdiff_ms(now, chan->dtmf_tv);
@@ -2318,6 +2320,8 @@
struct timeval now = ast_tvnow();
if (ast_tvdiff_ms(now, chan->dtmf_tv) >= chan->emulate_dtmf_duration) {
chan->emulate_dtmf_duration = 0;
+ ast_frfree(f);
+ f = &chan->dtmff;
f->frametype = AST_FRAME_DTMF_END;
f->subclass = chan->emulate_dtmf_digit;
f->len = ast_tvdiff_ms(now, chan->dtmf_tv);
More information about the asterisk-commits
mailing list