]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
file.c, channel.c: Don't emit warnings if progress received.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 10 Apr 2024 00:01:36 +0000 (20:01 -0400)
committerchannel.c: Don't emit warnings if progress received. <Naveen Albert|asterisk@phreaknet.org|>
Wed, 17 Apr 2024 14:31:43 +0000 (14:31 +0000)
Silently ignore AST_CONTROL_PROGRESS where appropriate,
as most control frames already are.

Resolves: #696

main/channel.c
main/file.c

index 122f6e55a3dec5cedfdb3f30fb015121010f3ea6..d8741b3a32426fefdfcf72898961d4e4f8cff545 100644 (file)
@@ -3311,6 +3311,7 @@ int ast_waitfordigit_full(struct ast_channel *c, int timeout_ms, const char *bre
                                        ast_channel_clear_flag(c, AST_FLAG_END_DTMF_ONLY);
                                        return res;
                                case AST_CONTROL_PVT_CAUSE_CODE:
+                               case AST_CONTROL_PROGRESS:
                                case AST_CONTROL_RINGING:
                                case AST_CONTROL_ANSWER:
                                case AST_CONTROL_SRCUPDATE:
index 959da3d945c06414528998462a52e524ec3557ad..e4eacfe1fd0bcf675d78566fa397ec30139a5642 100644 (file)
@@ -1752,6 +1752,7 @@ static int waitstream_core(struct ast_channel *c,
                                        ast_frfree(fr);
                                        ast_channel_clear_flag(c, AST_FLAG_END_DTMF_ONLY);
                                        return -1;
+                               case AST_CONTROL_PROGRESS:
                                case AST_CONTROL_RINGING:
                                case AST_CONTROL_ANSWER:
                                case AST_CONTROL_VIDUPDATE: