check decode here

This commit is contained in:
Brian West 2011-09-27 15:38:40 -05:00
parent 7b2c563e61
commit 7f04f7ace9
2 changed files with 3 additions and 0 deletions

View 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",

View 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: