mod_callcenter: Fix potential segfault on loopback agent. Thanks to François Delawarde

上级 3d838d5d
...@@ -1461,8 +1461,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa ...@@ -1461,8 +1461,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
/* Switch the agent session */ /* Switch the agent session */
if (real_uuid) { if (real_uuid) {
switch_core_session_rwunlock(agent_session); switch_core_session_rwunlock(agent_session);
agent_uuid = real_uuid;
agent_session = switch_core_session_locate(agent_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); agent_channel = switch_core_session_get_channel(agent_session);
switch_channel_set_variable(agent_channel, "cc_queue", h->queue_name); switch_channel_set_variable(agent_channel, "cc_queue", h->queue_name);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论