From 598d52d5fbd8533a65ddad956f1691f2b38173dd Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Thu, 30 Apr 2020 11:03:34 -0600 Subject: [PATCH] [mod_sofia] remove blank display name that can show up in from uri --- src/mod/endpoints/mod_sofia/sofia_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);