mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Fix randomness. save_pos was being set to 0 initially instead of -1, causing it to jump to position 0 when moh started.
(closes issue #10859) Reported by: jamesgolovich Patches: asterisk-mohpos2.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@84160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -312,6 +312,7 @@ static void *moh_files_alloc(struct ast_channel *chan, void *params)
|
||||
if (!chan->music_state && (state = ast_calloc(1, sizeof(*state)))) {
|
||||
chan->music_state = state;
|
||||
state->class = class;
|
||||
state->save_pos = -1;
|
||||
} else
|
||||
state = chan->music_state;
|
||||
|
||||
|
Reference in New Issue
Block a user