]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert "FS-10304: [mod_callcenter] Prevent infinite logging when a stale queue member...
authorMike Jerris <mike@jerris.com>
Tue, 11 Jul 2017 17:51:29 +0000 (13:51 -0400)
committerMike Jerris <mike@jerris.com>
Tue, 11 Jul 2017 17:51:46 +0000 (13:51 -0400)
This reverts commit 5d4ee9a8517d552f84d26bcd7f61f29c138475be.

src/mod/applications/mod_callcenter/mod_callcenter.c

index 47e419380c85347c7b8abba33d5e1f0acfdc1e7a..a7a22982dceed8a0ddb73ecccd15f47397954436 100644 (file)
@@ -2295,10 +2295,7 @@ static int members_callback(void *pArg, int argc, char **argv, char **columnName
        serving_agent = argv[9];
 
        if (!cbt.queue_name || !(queue = get_queue(cbt.queue_name))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Queue %s not found locally, delete this member\n", cbt.queue_name);
-               sql = switch_mprintf("DELETE FROM members WHERE uuid = '%q' AND system = '%q'", cbt.member_uuid, cbt.member_system);
-               cc_execute_sql(NULL, sql, NULL);
-               switch_safe_free(sql);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Queue %s not found locally, skip this member\n", cbt.queue_name);
                goto end;
        } else {
                queue_name = strdup(queue->name);