From: Mike Jerris Date: Thu, 30 Apr 2020 17:03:34 +0000 (-0600) Subject: [mod_sofia] remove blank display name that can show up in from uri X-Git-Tag: v1.10.3^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=598d52d5fbd8533a65ddad956f1691f2b38173dd;p=thirdparty%2Ffreeswitch.git [mod_sofia] remove blank display name that can show up in from uri --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 72c654fe46..a412f25cd3 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1309,7 +1309,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) use_from_str = switch_core_session_sprintf(session, "sip:%s", use_from_str); } - if (!from_display && !strcasecmp(tech_pvt->caller_profile->caller_id_name, "_undef_")) { + if (!from_display && (!strcasecmp(tech_pvt->caller_profile->caller_id_name, "_undef_") || zstr(tech_pvt->caller_profile->caller_id_name))) { from_str = switch_core_session_sprintf(session, "<%s>", use_from_str); } else { char *name = switch_core_session_strdup(session, from_display ? from_display : tech_pvt->caller_profile->caller_id_name);