[asterisk-commits] russell: branch 1.2 r48356 -
/branches/1.2/res/res_musiconhold.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Dec 7 11:14:14 MST 2006
Author: russell
Date: Thu Dec 7 12:14:13 2006
New Revision: 48356
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48356
Log:
Ensure that the file position is not incremented beyond the total number of
files available for playback. (issue #8539, ulogic)
Modified:
branches/1.2/res/res_musiconhold.c
Modified: branches/1.2/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_musiconhold.c?view=diff&rev=48356&r1=48355&r2=48356
==============================================================================
--- branches/1.2/res/res_musiconhold.c (original)
+++ branches/1.2/res/res_musiconhold.c Thu Dec 7 12:14:13 2006
@@ -227,6 +227,7 @@
if (!ast_openstream_full(chan, state->class->filearray[state->pos], chan->language, 1)) {
ast_log(LOG_WARNING, "Unable to open file '%s': %s\n", state->class->filearray[state->pos], strerror(errno));
state->pos++;
+ state->pos %= state->class->total_files;
return -1;
}
More information about the asterisk-commits
mailing list