]> 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)
committerItalo Rossi <italorossib@gmail.com>
Tue, 9 May 2017 14:20:04 +0000 (11:20 -0300)
src/mod/applications/mod_callcenter/mod_callcenter.c

index 071ccd2a93e63f12f639c5799049da8a59570277..98b6a5514e66e5a69b0572cbf3d4a6e73a27e94a 100644 (file)
@@ -1932,7 +1932,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");