[asterisk-commits] mnick: branch 1.6.2 r221472 - in /branches/1.6.2: ./ apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 30 16:46:47 CDT 2009
Author: mnick
Date: Wed Sep 30 16:46:44 2009
New Revision: 221472
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=221472
Log:
Merged revisions 221436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r221436 | mnick | 2009-09-30 16:15:01 -0500 (Wed, 30 Sep 2009) | 2 lines
Prevents from division by zero
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/apps/app_queue.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_queue.c?view=diff&rev=221472&r1=221471&r2=221472
==============================================================================
--- branches/1.6.2/apps/app_queue.c (original)
+++ branches/1.6.2/apps/app_queue.c Wed Sep 30 16:46:44 2009
@@ -2711,7 +2711,7 @@
ast_verb(3, "Playing periodic announcement\n");
- if (qe->parent->randomperiodicannounce) {
+ if (qe->parent->randomperiodicannounce && qe->parent->numperiodicannounce) {
qe->last_periodic_announce_sound = ((unsigned long) ast_random()) % qe->parent->numperiodicannounce;
} else if (qe->last_periodic_announce_sound >= qe->parent->numperiodicannounce ||
ast_str_strlen(qe->parent->sound_periodicannounce[qe->last_periodic_announce_sound]) == 0) {
More information about the asterisk-commits
mailing list