diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 8949317d32..bc6273f30d 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -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;