Actually allow realtime queue members to be added (issue #7408 reported by tgrman)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2006-06-21 18:39:56 +00:00
parent 58c243a6d4
commit 0224dee876

View File

@@ -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. */