From 6cf8c8f6b0ba63e8118387cb05f6d5a48a870c2f Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Mon, 28 Mar 2011 12:33:07 -0400 Subject: [PATCH] =?UTF-8?q?mod=5Fcallcenter:=20Fix=20potential=20segfault?= =?UTF-8?q?=20on=20loopback=20agent.=20=20Thanks=20to=20Fran=C3=A7ois=20De?= =?UTF-8?q?lawarde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mod/applications/mod_callcenter/mod_callcenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_callcenter/mod_callcenter.c b/src/mod/applications/mod_callcenter/mod_callcenter.c index 6f74d3ade9..69055c132d 100644 --- a/src/mod/applications/mod_callcenter/mod_callcenter.c +++ b/src/mod/applications/mod_callcenter/mod_callcenter.c @@ -1461,8 +1461,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa /* Switch the agent session */ if (real_uuid) { switch_core_session_rwunlock(agent_session); - agent_uuid = real_uuid; agent_session = switch_core_session_locate(agent_uuid); + agent_uuid = switch_core_session_get_uuid(agent_session); agent_channel = switch_core_session_get_channel(agent_session); switch_channel_set_variable(agent_channel, "cc_queue", h->queue_name);