diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-03 22:59:17 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-03 22:59:17 +0000 |
commit | b72eebebe34a37d65846056c6ca06e529c3aa055 (patch) | |
tree | 836d61b58577550b3b77df63f890a9620a7a2235 /main/rtp.c | |
parent | 901643becd2e3885554f52b98e62cd3435159c24 (diff) |
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/branches/1.4@84581 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp.c')
-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 39f8c85ec..47af8477b 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -737,6 +737,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)) { |