]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 65328 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Tue, 22 May 2007 08:12:20 +0000 (08:12 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 22 May 2007 08:12:20 +0000 (08:12 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r65328 | crichter | 2007-05-22 09:46:39 +0200 (Di, 22 Mai 2007) | 1 line

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.4@65342 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 37e651b0d628d44a4074afc319dafc387652c09e..bbd11ff49d86209f13c16e6d86450764d6ca49e1 100644 (file)
@@ -3907,7 +3907,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);
                }