--- ../clean/asterisk-1.4.10/apps/app_queue.c 2007-08-08 20:42:29.000000000 +0200 +++ apps/app_queue.c 2007-08-10 11:25:33.000000000 +0200 @@ -403,6 +405,7 @@ static AST_LIST_HEAD_STATIC(queues, call_queue); +static void update_realtime_members(struct call_queue *q); static int set_member_paused(const char *queuename, const char *interface, int paused); static void rr_dep_warning(void) @@ -936,7 +944,7 @@ if (penalty_str) { penalty = atoi(penalty_str); if (penalty < 0) - penalty = 0; + return; } if (paused_str) { @@ -1163,6 +1174,8 @@ ast_variables_destroy(queue_vars); AST_LIST_UNLOCK(&queues); + } else { + update_realtime_members(q); } return q; }