check_decode the caller id name in this case too

This commit is contained in:
Michael Jerris 2011-04-14 19:09:11 -04:00
parent 244048f8f5
commit ceed7658e2
1 changed files with 3 additions and 2 deletions

View File

@ -2110,8 +2110,9 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
if (!from_display && !strcasecmp(tech_pvt->caller_profile->caller_id_name, "_undef_")) {
from_str = switch_core_session_sprintf(session, "<%s>", use_from_str);
} else {
from_str = switch_core_session_sprintf(session, "\"%s\" <%s>", from_display ? from_display :
tech_pvt->caller_profile->caller_id_name, use_from_str);
char *name = switch_core_session_strdup(session, from_display ? from_display : tech_pvt->caller_profile->caller_id_name);
check_decode(name, session);
from_str = switch_core_session_sprintf(session, "\"%s\" <%s>", name, use_from_str);
}
if (!(call_id = switch_channel_get_variable(channel, "sip_invite_call_id"))) {