From: Naveen Albert Date: Sat, 4 Mar 2023 00:09:23 +0000 (+0000) Subject: app_dial: Fix DTMF not relayed to caller on unanswered calls. X-Git-Tag: 21.0.0-pre1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95a41d231ff4ca199810a375d2b2781bf981a1d3;p=thirdparty%2Fasterisk.git app_dial: Fix DTMF not relayed to caller on unanswered calls. 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 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 1a69edf417..5c6982a292 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1701,6 +1701,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; }