mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Fix sounds descriptions, add more info to chan_agent
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -237,12 +237,16 @@ static struct ast_frame *agent_read(struct ast_channel *ast)
|
||||
}
|
||||
}
|
||||
if (f && (f->frametype == AST_FRAME_CONTROL) && (f->subclass == AST_CONTROL_ANSWER)) {
|
||||
if (option_verbose > 2)
|
||||
ast_verbose(VERBOSE_PREFIX_3 "%s answered, waiting for '#' to acknowledge\n", p->chan->name);
|
||||
/* Don't pass answer along */
|
||||
ast_frfree(f);
|
||||
f = &null_frame;
|
||||
}
|
||||
if (f && (f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) {
|
||||
if (!p->acknowledged) {
|
||||
if (option_verbose > 2)
|
||||
ast_verbose(VERBOSE_PREFIX_3 "%s acknowledged\n", p->chan->name);
|
||||
p->acknowledged = 1;
|
||||
ast_frfree(f);
|
||||
f = &answer_frame;
|
||||
|
Reference in New Issue
Block a user