]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10772 - [mod_callcenter] commit 404c69698ed7a4ff215cf2d430b6a1721c693eb1 added...
authorItalo Rossi <italorossib@gmail.com>
Fri, 3 Nov 2017 17:47:19 +0000 (14:47 -0300)
committerItalo Rossi <italorossib@gmail.com>
Fri, 3 Nov 2017 17:47:19 +0000 (14:47 -0300)
src/mod/applications/mod_callcenter/mod_callcenter.c

index 1419f4b38345be2c8fc8a878d628041719948f4a..71aa69179b8b54c6b23bc6397e0893bb11a0d967 100644 (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 {