Merge "channel: Clear channel flag in error branch."
This commit is contained in:
commit
b104e484b6
1 changed files with 5 additions and 1 deletions
|
@ -3262,8 +3262,12 @@ int ast_waitfordigit_full(struct ast_channel *c, int timeout_ms, int audiofd, in
|
||||||
} else if (rchan) {
|
} else if (rchan) {
|
||||||
int res;
|
int res;
|
||||||
struct ast_frame *f = ast_read(c);
|
struct ast_frame *f = ast_read(c);
|
||||||
if (!f)
|
|
||||||
|
if (!f) {
|
||||||
|
ast_channel_clear_flag(c, AST_FLAG_END_DTMF_ONLY);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
switch (f->frametype) {
|
switch (f->frametype) {
|
||||||
case AST_FRAME_DTMF_BEGIN:
|
case AST_FRAME_DTMF_BEGIN:
|
||||||
|
|
Loading…
Reference in a new issue