[Asterisk-code-review] channel: Clear channel flag in error branch. (asterisk[13])
Corey Farrell
asteriskteam at digium.com
Sat Jul 1 00:01:45 CDT 2017
Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/5945
Change subject: channel: Clear channel flag in error branch.
......................................................................
channel: Clear channel flag in error branch.
Clear channel flag AST_FLAG_END_DTMF_ONLY in ast_waitfordigit_full when
ast_read returns NULL.
ASTERISK-27100 #close
Change-Id: Id3039e9a4e74e0cb359f636c9fd0c9740ebf7d9d
---
M main/channel.c
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/45/5945/1
diff --git a/main/channel.c b/main/channel.c
index c5060b7..c6c035f 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -3557,8 +3557,12 @@
} else if (rchan) {
int res;
struct ast_frame *f = ast_read(c);
- if (!f)
+
+ if (!f) {
+ ast_channel_clear_flag(c, AST_FLAG_END_DTMF_ONLY);
+
return -1;
+ }
switch (f->frametype) {
case AST_FRAME_DTMF_BEGIN:
--
To view, visit https://gerrit.asterisk.org/5945
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3039e9a4e74e0cb359f636c9fd0c9740ebf7d9d
Gerrit-Change-Number: 5945
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170701/eb4c9497/attachment-0001.html>
More information about the asterisk-code-review
mailing list