]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10738 [mod_callcenter] - setting bridged = 0 if member give up too early
authorItalo Rossi <italorossib@gmail.com>
Tue, 17 Oct 2017 23:32:35 +0000 (20:32 -0300)
committerItalo Rossi <italorossib@gmail.com>
Tue, 17 Oct 2017 23:32:35 +0000 (20:32 -0300)
src/mod/applications/mod_callcenter/mod_callcenter.c

index 2a49e387aae10bcc507810b5d140baf3b5aeabdb..5d4201459aa7fd6afc194c35b63a192c20b5a7d3 100644 (file)
@@ -1614,7 +1614,7 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
        /* member is gone before we could process it */
        if (!member_session) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Member %s <%s> with uuid %s in queue %s is gone just before we assigned an agent\n", h->member_cid_name, h->member_cid_number, h->member_session_uuid, h->queue_name);
-
+               bridged = 0;
 
                 sql = switch_mprintf("UPDATE members SET state = '%q', session_uuid = '', abandoned_epoch = '%" SWITCH_TIME_T_FMT "' WHERE uuid = '%q' AND system = '%q' AND state != '%q'",
                                cc_member_state2str(CC_MEMBER_STATE_ABANDONED), local_epoch_time_now(NULL), h->member_uuid, globals.core_uuid, cc_member_state2str(CC_MEMBER_STATE_ABANDONED));