aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 14:27:03 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-22 14:27:03 +0000
commit9b79b4183bd0b8009476e9758d19d82b535389dc (patch)
treee3457a786c9cd78257d1ce8cef6a15d9a08a3392 /main/channel.c
parent7253b5001c66b5fcfac9a346e88e14493d3bc778 (diff)
Move log message to before the frame it references is freed.
(closes issue #11050) Reported by: slavon Patches: channel.c.86662.diff uploaded by casper (license 55) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@86663 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index d21310c79..7c22fcf4b 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -2427,9 +2427,9 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
if ( ast_test_flag(chan, AST_FLAG_DEFER_DTMF | AST_FLAG_END_DTMF_ONLY) ||
(!ast_tvzero(chan->dtmf_tv) &&
ast_tvdiff_ms(ast_tvnow(), chan->dtmf_tv) < AST_MIN_DTMF_GAP) ) {
+ ast_log(LOG_DTMF, "DTMF begin ignored '%c' on %s\n", f->subclass, chan->name);
ast_frfree(f);
f = &ast_null_frame;
- ast_log(LOG_DTMF, "DTMF begin ignored '%c' on %s\n", f->subclass, chan->name);
} else {
ast_set_flag(chan, AST_FLAG_IN_DTMF);
chan->dtmf_tv = ast_tvnow();