From 5967d8f2bc93bb3712d8acd5241b31c182498f58 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 6 Jan 2005 05:15:50 +0000 Subject: [PATCH] stop music on hold when channel is hung up instead of after the channel is destroyed (bug #3035) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4692 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 1 + 1 file changed, 1 insertion(+) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index e3808da624..5f715b608b 100755 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -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; } -- 2.47.2