[mod_sofia] remove blank display name that can show up in from uri

This commit is contained in:
Mike Jerris 2020-04-30 11:03:34 -06:00 committed by Andrey Volk
parent d9d49920cb
commit 598d52d5fb
1 changed files with 1 additions and 1 deletions

View File

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