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/branches/1.2@41827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
BJ Weschke
2006-09-03 14:16:08 +00:00
parent 1e21d7a537
commit c3b61adc5b

View File

@@ -777,7 +777,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char
q->periodicannouncefrequency = atoi(val); q->periodicannouncefrequency = atoi(val);
} else if (!strcasecmp(param, "retry")) { } else if (!strcasecmp(param, "retry")) {
q->retry = atoi(val); q->retry = atoi(val);
if (q->retry < 0) if (q->retry <= 0)
q->retry = DEFAULT_RETRY; q->retry = DEFAULT_RETRY;
} else if (!strcasecmp(param, "wrapuptime")) { } else if (!strcasecmp(param, "wrapuptime")) {
q->wrapuptime = atoi(val); q->wrapuptime = atoi(val);