提交 b6446d52 authored 作者: Anthony Minessale II's avatar Anthony Minessale II

Merge pull request #937 in FS/freeswitch from ~LAZEDO/freeswitch:bugfix/FS-9451 to master

* commit 'ebdf980e':
  FS-9551 [mod_sofia] compare also session before setting TFLAG_SKIP_EARLY
......@@ -6126,10 +6126,11 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status
if (status < 200) {
if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) {
private_object_t *other_tech_pvt = switch_core_session_get_private(other_session);
if (sofia_test_flag(other_tech_pvt, TFLAG_3PCC)) {
sofia_set_flag_locked(tech_pvt, TFLAG_SKIP_EARLY);
if(switch_core_session_compare(session, other_session)) {
private_object_t *other_tech_pvt = switch_core_session_get_private(other_session);
if (sofia_test_flag(other_tech_pvt, TFLAG_3PCC)) {
sofia_set_flag_locked(tech_pvt, TFLAG_SKIP_EARLY);
}
}
switch_core_session_rwunlock(other_session);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论