提交 d5cc4a1d authored 作者: Sergey Safarov's avatar Sergey Safarov

FS-7311: Updating display name is disabled when caller_id equal "_undef_"

上级 d3bac671
...@@ -225,7 +225,7 @@ char *generate_pai_str(private_object_t *tech_pvt) ...@@ -225,7 +225,7 @@ char *generate_pai_str(private_object_t *tech_pvt)
header = (tech_pvt->cid_type == CID_TYPE_RPID && !switch_stristr("aastra", ua)) ? "Remote-Party-ID" : "P-Asserted-Identity"; header = (tech_pvt->cid_type == CID_TYPE_RPID && !switch_stristr("aastra", ua)) ? "Remote-Party-ID" : "P-Asserted-Identity";
if (!zstr(callee_name) && !zstr(callee_number)) { if (!zstr(callee_name) && strcmp(callee_name, "_undef_") && !zstr(callee_number)) {
check_decode(callee_name, tech_pvt->session); check_decode(callee_name, tech_pvt->session);
if (switch_stristr("update_display", tech_pvt->x_freeswitch_support_remote)) { if (switch_stristr("update_display", tech_pvt->x_freeswitch_support_remote)) {
...@@ -1640,7 +1640,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi ...@@ -1640,7 +1640,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
number = msg->string_array_arg[1]; number = msg->string_array_arg[1];
call_info = switch_channel_get_variable(channel, "presence_call_info_full"); call_info = switch_channel_get_variable(channel, "presence_call_info_full");
if (!zstr(name)) { if (!zstr(name) && strcmp(name, "_undef_")) {
char message[256] = ""; char message[256] = "";
const char *ua = switch_channel_get_variable(tech_pvt->channel, "sip_user_agent"); const char *ua = switch_channel_get_variable(tech_pvt->channel, "sip_user_agent");
switch_event_t *event; switch_event_t *event;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论