]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
stop music on hold when channel is hung up instead of after the channel is destroyed...
authorRussell Bryant <russell@russellbryant.com>
Thu, 6 Jan 2005 05:15:50 +0000 (05:15 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 6 Jan 2005 05:15:50 +0000 (05:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4692 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index e3808da624cfd06c3d65115632f3cf67b1b3302b..5f715b608b11262a0e1146bf5b14487e043ac997 100755 (executable)
@@ -355,6 +355,7 @@ static int moh0_exec(struct ast_channel *chan, void *data)
                return -1;
        }
        while(!ast_safe_sleep(chan, 10000));
+       ast_moh_stop(chan);
        return -1;
 }