提交 67217f0c authored 作者: Brian West's avatar Brian West

SFSIP-214 don't override with a possible NULL value for tech_pvt->cid_type…

 SFSIP-214 don't override with a possible NULL value for tech_pvt->cid_type because its already defaulted to the profile setting at the top of sofia_glue_do_invite
上级 29679dc1
...@@ -1893,9 +1893,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) ...@@ -1893,9 +1893,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
if ((val = switch_channel_get_variable(channel, "sip_cid_type"))) { if ((val = switch_channel_get_variable(channel, "sip_cid_type"))) {
cid_type = sofia_cid_name2type(val); cid_type = sofia_cid_name2type(val);
} else { }
cid_type = tech_pvt->cid_type;
}
if (sofia_test_flag(tech_pvt, TFLAG_RECOVERING) && switch_channel_direction(tech_pvt->channel) == SWITCH_CALL_DIRECTION_INBOUND) { if (sofia_test_flag(tech_pvt, TFLAG_RECOVERING) && switch_channel_direction(tech_pvt->channel) == SWITCH_CALL_DIRECTION_INBOUND) {
if (zstr((use_name = switch_channel_get_variable(tech_pvt->channel, "effective_callee_id_name"))) && if (zstr((use_name = switch_channel_get_variable(tech_pvt->channel, "effective_callee_id_name"))) &&
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论