mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@84581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -737,6 +737,10 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat
|
|||||||
resp = 'A' + (event - 12);
|
resp = 'A' + (event - 12);
|
||||||
} else if (event < 17) { /* Event 16: Hook flash */
|
} else if (event < 17) { /* Event 16: Hook flash */
|
||||||
resp = 'X';
|
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)) {
|
if (ast_test_flag(rtp, FLAG_DTMF_COMPENSATE)) {
|
||||||
|
Reference in New Issue
Block a user