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
1.0
Russell Bryant 21 years ago
parent dcd5da730a
commit 5967d8f2bc

@ -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;
}

Loading…
Cancel
Save