mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 51328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51328 | russell | 2007-01-19 13:08:25 -0600 (Fri, 19 Jan 2007) | 5 lines Fix VLDTMF support in chan_gtalk. AST_FRAME_DTMF and AST_FRAME_DTMF_END are actually the same thing. So, a digit would have been interpreted incorrectly here. Since the channel driver will always have the begin and end callbacks called for a digit, only support the button-down and button-up messages. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1385,9 +1385,7 @@ static int gtalk_digit(struct ast_channel *ast, char digit, unsigned int duratio
|
|||||||
iks_insert_node(gtalk, dtmf);
|
iks_insert_node(gtalk, dtmf);
|
||||||
|
|
||||||
ast_mutex_lock(&p->lock);
|
ast_mutex_lock(&p->lock);
|
||||||
if (ast->dtmff.frametype == AST_FRAME_DTMF) {
|
if (ast->dtmff.frametype == AST_FRAME_DTMF_BEGIN) {
|
||||||
ast_log(LOG_DEBUG, "Sending 250ms dtmf!\n");
|
|
||||||
} else if (ast->dtmff.frametype == AST_FRAME_DTMF_BEGIN) {
|
|
||||||
iks_insert_attrib(dtmf, "action", "button-down");
|
iks_insert_attrib(dtmf, "action", "button-down");
|
||||||
} else if (ast->dtmff.frametype == AST_FRAME_DTMF_END) {
|
} else if (ast->dtmff.frametype == AST_FRAME_DTMF_END) {
|
||||||
iks_insert_attrib(dtmf, "action", "button-up");
|
iks_insert_attrib(dtmf, "action", "button-up");
|
||||||
|
Reference in New Issue
Block a user