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

This commit is contained in:
Sergey Safarov 2015-05-03 21:35:34 +03:00
parent d3bac671d2
commit d5cc4a1d87
1 changed files with 2 additions and 2 deletions

View File

@ -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
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;