mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user