]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
check decode here
authorBrian West <brian@freeswitch.org>
Tue, 27 Sep 2011 20:38:40 +0000 (15:38 -0500)
committerBrian West <brian@freeswitch.org>
Wed, 28 Sep 2011 05:35:06 +0000 (00:35 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index 810d67e5baa2fe77aa8f163d26a2cc0c88cff59e..0ab0b152ff329221ba7a2867265edb98aec148f4 100644 (file)
@@ -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",
index cc40eb7663c38059869d2c88bc312874226141c8..518f1065b81868580c8a4cff411028189df378c9 100644 (file)
@@ -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: