Turn off music on hold when doing *0
authorMark Spencer <markster@digium.com>
Tue, 4 Nov 2003 21:21:49 +0000 (21:21 +0000)
committerMark Spencer <markster@digium.com>
Tue, 4 Nov 2003 21:21:49 +0000 (21:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1690 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 751cd96..3d92949 100755 (executable)
@@ -4302,6 +4302,8 @@ static void *ss_thread(void *data)
                                        swap_subs(p, SUB_REAL, SUB_THREEWAY);
                                        unalloc_sub(p, SUB_THREEWAY);
                                        p->owner = p->subs[SUB_REAL].owner;
+                                       if (p->subs[SUB_REAL].owner->bridge)
+                                               ast_moh_stop(p->subs[SUB_REAL].owner->bridge);
                                        ast_hangup(chan);
                                        return NULL;
                                } else {