From: Christian Richter Date: Tue, 22 May 2007 07:46:39 +0000 (+0000) Subject: we stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNE... X-Git-Tag: 1.2.19~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b6da8d56e740530f7ef4138523472b23b263103;p=thirdparty%2Fasterisk.git we stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNECTED state we should not stop tones when we receive an Information Message git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65328 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index e2bd8b087c..703e3c3789 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -3459,7 +3459,8 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) { int stop_tone; misdn_cfg_get( 0, MISDN_GEN_STOP_TONE, &stop_tone, sizeof(int)); - if ( stop_tone ) { + + if ( (ch->state != MISDN_CONNECTED) && stop_tone ) { stop_indicate(ch); }