diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-03 23:05:47 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-03 23:05:47 +0000 |
commit | 392420174246d3a58ff39bfed04d00d091cfd566 (patch) | |
tree | fea291122b7c88494d5137c4b5ebf0b037d0da8d /main | |
parent | 35dffc0dc7b660303f1e52017ec37242e65f149c (diff) |
Merged revisions 84581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84581 | tilghman | 2007-10-03 17:59:17 -0500 (Wed, 03 Oct 2007) | 2 lines
When an RFC 2833 event is sent that we don't recognize, ignore it, don't queue a NULL digit (closes issue #10877)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84582 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index 211852418..201c522e4 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -961,6 +961,10 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat resp = 'A' + (event - 12); } else if (event < 17) { /* Event 16: Hook flash */ resp = 'X'; + } else { + /* Not a supported event */ + ast_log(LOG_DEBUG, "Ignoring RTP 2833 Event: %08x. Not a DTMF Digit.\n", event); + return &ast_null_frame; } if (ast_test_flag(rtp, FLAG_DTMF_COMPENSATE)) { |