From: Anthony Minessale Date: Fri, 30 Jan 2009 13:44:07 +0000 (+0000) Subject: MODAPP-207 X-Git-Tag: v1.0.3~515 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44250483997b7439500026cb86ab2b3538aaccb2;p=thirdparty%2Ffreeswitch.git MODAPP-207 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11561 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_fifo/mod_fifo.c b/src/mod/applications/mod_fifo/mod_fifo.c index d9716c298d..5cba7b0e7f 100644 --- a/src/mod/applications/mod_fifo/mod_fifo.c +++ b/src/mod/applications/mod_fifo/mod_fifo.c @@ -515,8 +515,9 @@ static void find_consumers(fifo_node_t *node) sql = switch_mprintf("select uuid, fifo_name, originate_string, simo_count, use_count, timeout, lag, " "next_avail, expires, static, outbound_call_count, outbound_fail_count, hostname " - "from fifo_outbound where (use_count < simo_count) and (next_avail = 0 or next_avail <= %ld) order by outbound_call_count", - (long) switch_epoch_time_now(NULL)); + "from fifo_outbound where (fifo_name = '%s') and (use_count < simo_count) and (next_avail = 0 or next_avail <= %ld) " + "order by outbound_call_count", node->name, (long) switch_epoch_time_now(NULL)); + switch_assert(sql); fifo_execute_sql_callback(globals.sql_mutex, sql, place_call_callback, &need); free(sql);