mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-26 11:47:53 +00:00
MODAPP-207
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11561 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
eed3042975
commit
4425048399
@ -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, "
|
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 "
|
"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",
|
"from fifo_outbound where (fifo_name = '%s') and (use_count < simo_count) and (next_avail = 0 or next_avail <= %ld) "
|
||||||
(long) switch_epoch_time_now(NULL));
|
"order by outbound_call_count", node->name, (long) switch_epoch_time_now(NULL));
|
||||||
|
|
||||||
switch_assert(sql);
|
switch_assert(sql);
|
||||||
fifo_execute_sql_callback(globals.sql_mutex, sql, place_call_callback, &need);
|
fifo_execute_sql_callback(globals.sql_mutex, sql, place_call_callback, &need);
|
||||||
free(sql);
|
free(sql);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user