From: Marc Olivier Chouinard Date: Sat, 4 Sep 2010 02:53:14 +0000 (-0400) Subject: mod_callcenter: Make more sence to bridge the caller to the agent. Before, in the... X-Git-Tag: v1.2-rc1~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0be95658aff1ee11daf97f8e41a63e4f1c1a1b41;p=thirdparty%2Ffreeswitch.git mod_callcenter: Make more sence to bridge the caller to the agent. Before, in the xml_cdr you saw it it like the agent initiated the call to the member --- diff --git a/src/mod/applications/mod_callcenter/mod_callcenter.c b/src/mod/applications/mod_callcenter/mod_callcenter.c index bad1c54560..e56309d005 100644 --- a/src/mod/applications/mod_callcenter/mod_callcenter.c +++ b/src/mod/applications/mod_callcenter/mod_callcenter.c @@ -1426,7 +1426,7 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Agent %s answered \"%s\" (%s) from queue %s%s\n", h->agent_name, h->member_caller_name, h->member_caller_number, h->queue, (h->record_template?" (Recorded)":"")); - switch_ivr_uuid_bridge(switch_core_session_get_uuid(agent_session), h->member_uuid); + switch_ivr_uuid_bridge(h->member_uuid, switch_core_session_get_uuid(agent_session)); /* Wait until the member hangup or the agent hangup. This will quit also if the agent transfer the call */ while(switch_channel_up(member_channel) && switch_channel_up(agent_channel) && globals.running) {