提交 f1b332e9 authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Mike Jerris

FS-10369: [freeswitch-core] Preserve original progress time when getting more than one

上级 1eb5ee1a
...@@ -3323,9 +3323,11 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_mark_ring_ready_value(swi ...@@ -3323,9 +3323,11 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_mark_ring_ready_value(swi
if ((other_session = switch_core_session_locate(channel->caller_profile->originator_caller_profile->uuid))) { if ((other_session = switch_core_session_locate(channel->caller_profile->originator_caller_profile->uuid))) {
switch_channel_t *other_channel; switch_channel_t *other_channel;
other_channel = switch_core_session_get_channel(other_session); other_channel = switch_core_session_get_channel(other_session);
if (other_channel->caller_profile) { switch_mutex_lock(other_channel->profile_mutex);
if (other_channel->caller_profile && !other_channel->caller_profile->times->progress) {
other_channel->caller_profile->times->progress = channel->caller_profile->times->progress; other_channel->caller_profile->times->progress = channel->caller_profile->times->progress;
} }
switch_mutex_unlock(other_channel->profile_mutex);
switch_core_session_rwunlock(other_session); switch_core_session_rwunlock(other_session);
} }
channel->caller_profile->originator_caller_profile->times->progress = channel->caller_profile->times->progress; channel->caller_profile->originator_caller_profile->times->progress = channel->caller_profile->times->progress;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论