]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
we stop the tones only when we're in the pre-call phase, otherwise e.g. when in CONNE...
authorChristian Richter <christian.richter@beronet.com>
Tue, 22 May 2007 07:46:39 +0000 (07:46 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 22 May 2007 07:46:39 +0000 (07:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@65328 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index e2bd8b087cf9d4219b2c0dc62b71aabb27e76ca2..703e3c37890c863ca747da4d52792924aa5ae5d3 100644 (file)
@@ -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);
                }