diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-05 20:02:44 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-05 20:02:44 +0000 |
commit | f43b90f6f5f53cdecfa51dbef3b70c7fec1d8d2e (patch) | |
tree | 486e8ef5cf5ec83774f717ae03af85eaae74c356 /channels | |
parent | 44bf6336341c308535b2e0844ccaa38de43ecf99 (diff) |
Clear the DTMF buffer on hangup.
(closes issue #11919)
Reported by: eferro
Patches:
mgcp_dtmfclean_on_hangup.diff uploaded by eferro (license 337)
Tested by: eferro
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@102453 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_mgcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c index 821af684a..353877285 100644 --- a/channels/chan_mgcp.c +++ b/channels/chan_mgcp.c @@ -981,6 +981,9 @@ static int mgcp_hangup(struct ast_channel *ast) sub->outgoing = 0; sub->cxmode = MGCP_CX_INACTIVE; sub->callid[0] = '\0'; + if (p) { + memset(p->dtmf_buf, 0, sizeof(p->dtmf_buf)); + } /* Reset temporary destination */ memset(&sub->tmpdest, 0, sizeof(sub->tmpdest)); if (sub->rtp) { |