diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-27 21:09:37 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-27 21:09:37 +0000 |
commit | 852aa2966ee2d84326fb1992d298fd8d0c35dc7d (patch) | |
tree | 8681bf3566144a7f48f9ab868c053a5ebdcca443 | |
parent | f0f89a8dd6342465d63ddd632757367e620ecf15 (diff) |
Merged revisions 81120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r81120 | mmichelson | 2007-08-27 16:08:48 -0500 (Mon, 27 Aug 2007) | 7 lines
DTMF begin frames should be ignored so that when an agent acks a call with the '#' key,
he doesn't cause a queue's announce file to be interrupted. Also went ahead and did the
same for the '*' key and for ending a call.
(closes issue #10528, reported by deskhack, patched by me)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81121 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_agent.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index fbdc756e1..3ff994473 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -472,6 +472,12 @@ static struct ast_frame *agent_read(struct ast_channel *ast) } break; case AST_FRAME_DTMF_BEGIN: + /*ignore DTMF begin's as it can cause issues with queue announce files*/ + if((!p->acknowledged && f->subclass == '#') || (f->subclass == '*' && endcall)){ + ast_frfree(f); + f = &ast_null_frame; + } + break; case AST_FRAME_DTMF_END: if (!p->acknowledged && (f->subclass == '#')) { ast_verb(3, "%s acknowledged\n", p->chan->name); |