From a2a09fb1d97662f81e9a25c2c3ddb0b35e1f866c Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Mon, 25 Apr 2011 14:22:57 -0400 Subject: [PATCH] mod_callcenter: Try to make uuid-standby continue the dialplan. Let me know if this helped --- src/mod/applications/mod_callcenter/mod_callcenter.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_callcenter/mod_callcenter.c b/src/mod/applications/mod_callcenter/mod_callcenter.c index cac669eb94..6007e96bdb 100644 --- a/src/mod/applications/mod_callcenter/mod_callcenter.c +++ b/src/mod/applications/mod_callcenter/mod_callcenter.c @@ -1571,7 +1571,13 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member_session), SWITCH_LOG_DEBUG, "Agent %s answered \"%s\" <%s> from queue %s%s\n", h->agent_name, h->member_cid_name, h->member_cid_number, h->queue_name, (h->record_template?" (Recorded)":"")); - switch_ivr_uuid_bridge(h->member_session_uuid, switch_core_session_get_uuid(agent_session)); + + /* TODO Temp fix so it continue the dialplan after hangup... Not sure of the reason why the order make a difference */ + if (!strcasecmp(h->agent_type, CC_AGENT_TYPE_UUID_STANDBY)) { + switch_ivr_uuid_bridge(h->member_session_uuid, switch_core_session_get_uuid(agent_session)); + } else { + switch_ivr_uuid_bridge(switch_core_session_get_uuid(agent_session), h->member_session_uuid); + } switch_channel_set_variable(member_channel, "cc_agent_uuid", agent_uuid);