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:
Mark Spencer
2003-08-02 21:25:43 +00:00
parent 1fb2eaabf3
commit f4985479d2
2 changed files with 32 additions and 26 deletions

View File

@@ -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;