diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 21:19:59 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 21:19:59 +0000 |
commit | 887ebd5ee70e374901e5cc60042064986688dce8 (patch) | |
tree | 0facb36da28e7e8a9ae2f9f982a452d4c85d344d /channel.c | |
parent | 9a0aaf306a01a56d4fc3863051b1e6f14e3bd5c6 (diff) |
add a LOG_DTMF logging channel and send all bridged DTMF events out that channel (issue #4835)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6358 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1966,6 +1966,14 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr) res = 0; } } + + /* It's possible this is a translated frame */ + if (f && f->frametype == AST_FRAME_DTMF) { + ast_log(LOG_DTMF, "%s : %c\n", chan->name, f->subclass); + } else if (fr->frametype == AST_FRAME_DTMF) { + ast_log(LOG_DTMF, "%s : %c\n", chan->name, fr->subclass); + } + if (f && (f != fr)) ast_frfree(f); ast_clear_flag(chan, AST_FLAG_BLOCKING); |