mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 07:01:07 +00:00
Merged revisions 86750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86750 | russell | 2007-10-22 10:52:48 -0500 (Mon, 22 Oct 2007) | 8 lines Don't leak a frame in the case that an END frame is received and the time since the BEGIN is less than that of the defined minimum DTMF duration. (closes issue #11051) Reported by: casper Patches: channel.c.86664.diff uploaded by casper (license 55) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2360,6 +2360,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
|
||||
ast_set_flag(chan, AST_FLAG_EMULATE_DTMF);
|
||||
chan->emulate_dtmf_digit = f->subclass;
|
||||
chan->emulate_dtmf_duration = AST_MIN_DTMF_DURATION - f->len;
|
||||
ast_frfree(f);
|
||||
f = &ast_null_frame;
|
||||
} else {
|
||||
ast_log(LOG_DTMF, "DTMF end passthrough '%c' on %s\n", f->subclass, chan->name);
|
||||
|
||||
Reference in New Issue
Block a user