]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_dial: Fix DTMF not relayed to caller on unanswered calls.
authorNaveen Albert <asterisk@phreaknet.org>
Sat, 4 Mar 2023 00:09:23 +0000 (00:09 +0000)
committerAsterisk Development Team <asteriskteam@digium.com>
Mon, 8 May 2023 17:55:16 +0000 (17:55 +0000)
DTMF frames are not handled in app_dial when sent towards the
caller. This means that if DTMF is sent to the calling party
and the call has not yet been answered, the DTMF is not audible.
This is now fixed by relaying DTMF frames if only a single
destination is being dialed.

ASTERISK-29516 #close

Change-Id: Iafd7430ac2915126d42dc48f0b73b262452ee027
(cherry picked from commit 48e3da5cdf70a5d9cd28eea87ffacb0b778f6b45)

apps/app_dial.c

index c3892254b8bd24d2dfe52ff5909f08a524832881..44769de6df841281520d9d8441eec244783cd28a 100644 (file)
@@ -1762,6 +1762,8 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
                        case AST_FRAME_VIDEO:
                        case AST_FRAME_VOICE:
                        case AST_FRAME_IMAGE:
+                       case AST_FRAME_DTMF_BEGIN:
+                       case AST_FRAME_DTMF_END:
                                if (caller_entertained) {
                                        break;
                                }