From: Joshua Colp Date: Fri, 23 Jan 2009 20:16:39 +0000 (+0000) Subject: When a channel is answered make sure any indications currently playing stop. Usually... X-Git-Tag: 1.4.24-rc1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87c02936b6fe0b6b44e4f6f79063e6bc9e6d824e;p=thirdparty%2Fasterisk.git When a channel is answered make sure any indications currently playing stop. Usually the phone would do this but if the channel was already answered then they are being generated by Asterisk and we darn well need to stop them. (closes issue #14249) Reported by: RadicAlish git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@170648 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index a8898656d5..159de4c0bd 100644 --- a/main/channel.c +++ b/main/channel.c @@ -1578,6 +1578,7 @@ int ast_answer(struct ast_channel *chan) default: break; } + ast_indicate(chan, -1); chan->visible_indication = 0; ast_channel_unlock(chan); return res;