提交 6f9ee421 authored 作者: Liyang's avatar Liyang 提交者: Andrey Volk

FS-11903: [mod_sofia] fix warnV547 Expression 'sip->sip_via' is always true.

上级 f0da2f2c
...@@ -10563,11 +10563,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia ...@@ -10563,11 +10563,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
char tmp[35] = ""; char tmp[35] = "";
const char *ipv6 = strchr(tech_pvt->mparams.remote_ip, ':'); const char *ipv6 = strchr(tech_pvt->mparams.remote_ip, ':');
if (sip->sip_via) { transport = sofia_glue_via2transport(sip->sip_via);
transport = sofia_glue_via2transport(sip->sip_via);
} else {
transport = sofia_glue_url2transport(sip->sip_contact->m_url);
}
tech_pvt->record_route = tech_pvt->record_route =
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论