]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10298 [mod_callcenter] Firing bridge-agent-end if we failed to bridge answered...
authorItalo Rossi <italorossib@gmail.com>
Tue, 9 May 2017 14:19:59 +0000 (11:19 -0300)
committerMike Jerris <mike@jerris.com>
Thu, 1 Jun 2017 20:13:25 +0000 (16:13 -0400)
src/mod/applications/mod_callcenter/mod_callcenter.c

index 5552b5a9d935a79fa5163d86067f7ad2f8b65edd..c08618362d1fafb2eef1037918ff3733947020ea 100644 (file)
@@ -1873,7 +1873,7 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
                }
                tiers_state = CC_TIER_STATE_READY;
 
-               if (bridged && switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CALLCENTER_EVENT) == SWITCH_STATUS_SUCCESS) {
+               if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CALLCENTER_EVENT) == SWITCH_STATUS_SUCCESS) {
                        switch_channel_event_set_data(agent_channel, event);
                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Queue", h->queue_name);
                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Action", "bridge-agent-end");