From: Kinsey Moore Date: Mon, 12 Sep 2011 14:21:17 +0000 (+0000) Subject: Ensure frames are not written to dialed channel if ringback is requested X-Git-Tag: 1.8.8.0-rc1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=263a4104384d2f0f018facf7bb4e01050ef82f65;p=thirdparty%2Fasterisk.git Ensure frames are not written to dialed channel if ringback is requested When a single channel was dialed and there was media to be forwarded to the calling channel, the media was written without regard for ringback causing silence to be heard in some circumstances. This regression was introduced when the meaning of "single" changed to mean only the number of channels dialed. (closes issue ASTERISK-18083) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@335341 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index c92dec2639..3867ebc76a 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1351,7 +1351,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, case AST_FRAME_VOICE: case AST_FRAME_IMAGE: case AST_FRAME_TEXT: - if (ast_write(in, f)) { + if (!ast_test_flag64(outgoing, OPT_RINGBACK | OPT_MUSICBACK) && ast_write(in, f)) { ast_log(LOG_WARNING, "Unable to write frametype: %d\n", f->frametype); }