diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 5c6490fcce..80b272526b 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;