diff options
author | Joshua Colp <jcolp@digium.com> | 2007-10-01 13:59:13 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-10-01 13:59:13 +0000 |
commit | 147688278cd1ef43634f72a57f92c57aa3933027 (patch) | |
tree | 976d66d0f9ee3bbb64fa50b814050ad73584997c | |
parent | 3ed4d505b7e9a6cfdcbf768bacd0f2c3626c9934 (diff) |
Merged revisions 84160 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84160 | file | 2007-10-01 10:57:42 -0300 (Mon, 01 Oct 2007) | 6 lines
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/trunk@84161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | res/res_musiconhold.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 5c6490fcc..80b272526 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -310,6 +310,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; |