mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 01:51:14 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@38675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -180,6 +180,10 @@ static void moh_files_release(struct ast_channel *chan, void *data)
|
||||
struct moh_files_state *state = chan->music_state;
|
||||
|
||||
if (chan && state) {
|
||||
if (chan->stream) {
|
||||
ast_closestream(chan->stream);
|
||||
chan->stream = NULL;
|
||||
}
|
||||
if (option_verbose > 2)
|
||||
ast_verbose(VERBOSE_PREFIX_3 "Stopped music on hold on %s\n", chan->name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user