aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-30 17:52:49 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-30 17:52:49 +0000
commit3370fcd8debfc3653594681cef9d8270609d4e12 (patch)
tree227e56b9290b25195eaa006067ecaa99d3e3e347 /apps
parentb860cab1cc1343af236eb4fe9d8b49bbaa50fe9b (diff)
officially deprecate the 'roundrobin' queue strategy in favor of 'rrmemory'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30837 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 5187800e9..ba3940e48 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -395,6 +395,16 @@ static AST_LIST_HEAD_STATIC(queues, ast_call_queue);
static int set_member_paused(char *queuename, char *interface, int paused);
+static void rr_dep_warning(void)
+{
+ static unsigned int warned = 0;
+
+ if (!warned) {
+ ast_log(LOG_NOTICE, "The 'roundrobin' queue strategy is deprecated. Please use the 'rrmemory' strategy instead.\n");
+ warned = 1;
+ }
+}
+
static void set_queue_result(struct ast_channel *chan, enum queue_result res)
{
int i;
@@ -1028,6 +1038,9 @@ static struct ast_call_queue *find_queue_by_name_rt(const char *queuename, struc
v = v->next;
}
+ if (q->strategy == QUEUE_STRATEGY_ROUNDROBIN)
+ rr_dep_warning();
+
/* Temporarily set non-dynamic members dead so we can detect deleted ones. */
m = q->members;
while (m) {
@@ -3692,6 +3705,9 @@ static void reload_queues(void)
}
}
+ if (q->strategy == QUEUE_STRATEGY_ROUNDROBIN)
+ rr_dep_warning();
+
if (new) {
AST_LIST_INSERT_HEAD(&queues, q, list);
} else