]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_callcenter: force loopback_bowout=false on originate. This will need to be rewor...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 15 Feb 2011 03:46:35 +0000 (22:46 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 15 Feb 2011 03:46:35 +0000 (22:46 -0500)
src/mod/applications/mod_callcenter/mod_callcenter.c

index a06520f9877795d91f91d117ec1d0bfe8bd8c2db..9d9feed0aa647569388adae8683cd37a90b7722b 100644 (file)
@@ -1384,6 +1384,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
                switch_event_add_header(ovars, SWITCH_STACK_BOTTOM, "cc_agent", "%s", h->agent_name);
                switch_event_add_header(ovars, SWITCH_STACK_BOTTOM, "cc_agent_type", "%s", h->agent_type);
                switch_event_add_header(ovars, SWITCH_STACK_BOTTOM, "ignore_early_media", "true");
+               /* Force loopback to remain live, if not, the loop will detect the actual channel to gone */
+               switch_event_add_header(ovars, SWITCH_STACK_BOTTOM, "loopback_bowout", "false");
 
                t_agent_called = switch_epoch_time_now(NULL);
                dialstr = switch_mprintf("%s", h->originate_string);