From 7f04f7ace98ef5b99947baadbe805fe7cb9d3148 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 27 Sep 2011 15:38:40 -0500 Subject: [PATCH] check decode here --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 ++ src/mod/endpoints/mod_sofia/sofia_glue.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 810d67e5ba..0ab0b152ff 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -282,6 +282,8 @@ 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)) { + check_decode(callee_name, tech_pvt->session); + if (switch_stristr("update_display", tech_pvt->x_freeswitch_support_remote)) { pai = switch_core_session_sprintf(tech_pvt->session, "%s: \"%s\" <%s>%s\n" "X-FS-Display-Name: %s\nX-FS-Display-Number: %s\n", diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index cc40eb7663..518f1065b8 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -2270,6 +2270,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) use_number = tech_pvt->caller_profile->caller_id_number; } + check_decode(use_name, session); switch (cid_type) { case CID_TYPE_PID: