From: Russell Bryant Date: Thu, 6 Jan 2005 05:15:50 +0000 (+0000) Subject: stop music on hold when channel is hung up instead of after the channel is destroyed... X-Git-Tag: 1.0.11.1~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5967d8f2bc93bb3712d8acd5241b31c182498f58;p=thirdparty%2Fasterisk.git 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 --- 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; }