Merged revisions 41827 via svnmerge from
authorBJ Weschke <bweschke@btwtech.com>
Sun, 3 Sep 2006 14:28:25 +0000 (14:28 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Sun, 3 Sep 2006 14:28:25 +0000 (14:28 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r41827 | bweschke | 2006-09-03 10:16:08 -0400 (Sun, 03 Sep 2006) | 3 lines

 Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574 - reported by regin)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41829 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index ae02378..255da9c 100644 (file)
@@ -839,7 +839,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char
                q->periodicannouncefrequency = atoi(val);
        } else if (!strcasecmp(param, "retry")) {
                q->retry = atoi(val);
-               if (q->retry < 0)
+               if (q->retry <= 0)
                        q->retry = DEFAULT_RETRY;
        } else if (!strcasecmp(param, "wrapuptime")) {
                q->wrapuptime = atoi(val);