FS-10772 - [mod_callcenter] commit 404c69698e added an invalid WHERE syntax, fixed.

This commit is contained in:
Italo Rossi 2017-11-03 14:47:19 -03:00
parent 298a468edf
commit 32954c1b91
1 changed files with 1 additions and 1 deletions

View File

@ -1912,7 +1912,7 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
} else if (!bridged && !switch_channel_up(agent_channel)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member_session), SWITCH_LOG_DEBUG, "Failed to bridge, agent %s has no session\n", h->agent_name);
/* Put back member on Waiting state, previous Trying */
sql = switch_mprintf("UPDATE members SET state = 'Waiting' WHERE uuid = '%q', system = '%q'", h->member_uuid, globals.core_uuid);
sql = switch_mprintf("UPDATE members SET state = 'Waiting' WHERE uuid = '%q' AND system = '%q'", h->member_uuid, globals.core_uuid);
cc_execute_sql(NULL, sql, NULL);
switch_safe_free(sql);
} else {