aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-21 18:39:56 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-21 18:39:56 +0000
commit760f03818d0a8926aba2b5557523f9bb89127382 (patch)
tree9cb42b97cb9dc306beffa40a35966cae54932e16 /apps
parent82d7f873f0b5b92604b9aa6ac552a6690635d04b (diff)
Actually allow realtime queue members to be added (issue #7408 reported by tgrman)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35311 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 5b9d3dd4f..ad0c2e414 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -964,7 +964,7 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as
struct ast_variable *v;
struct call_queue *q;
struct member *m, *prev_m, *next_m;
- char *interface;
+ char *interface = NULL;
char *tmp, *tmp_name;
char tmpbuf[64]; /* Must be longer than the longest queue param name. */
@@ -1046,8 +1046,7 @@ static struct call_queue *find_queue_by_name_rt(const char *queuename, struct as
m->dead = 1;
}
- interface = NULL;
- while (ast_category_browse(member_config, interface))
+ while ((interface = ast_category_browse(member_config, interface)))
rt_handle_member_record(q, interface, ast_variable_retrieve(member_config, interface, "penalty"));
/* Delete all realtime members that have been deleted in DB. */