]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7311: Updating display name is disabled when caller_id equal "_undef_"
authorSergey Safarov <s.safarov@gmail.com>
Sun, 3 May 2015 18:35:34 +0000 (21:35 +0300)
committerSergey Safarov <s.safarov@gmail.com>
Fri, 5 Jun 2015 18:36:10 +0000 (21:36 +0300)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 102ab0a238f2a05e7238ffeabb323bff0f514df3..039f17ef6399690e194d096e9661f4f686df1876 100644 (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";
 
-       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);
 
                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];
                        call_info = switch_channel_get_variable(channel, "presence_call_info_full");
 
-                       if (!zstr(name)) {
+                       if (!zstr(name) && strcmp(name, "_undef_")) {
                                char message[256] = "";
                                const char *ua = switch_channel_get_variable(tech_pvt->channel, "sip_user_agent");
                                switch_event_t *event;