check decode here
This commit is contained in:
parent
7b2c563e61
commit
7f04f7ace9
|
@ -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";
|
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)) {
|
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)) {
|
if (switch_stristr("update_display", tech_pvt->x_freeswitch_support_remote)) {
|
||||||
pai = switch_core_session_sprintf(tech_pvt->session, "%s: \"%s\" <%s>%s\n"
|
pai = switch_core_session_sprintf(tech_pvt->session, "%s: \"%s\" <%s>%s\n"
|
||||||
"X-FS-Display-Name: %s\nX-FS-Display-Number: %s\n",
|
"X-FS-Display-Name: %s\nX-FS-Display-Number: %s\n",
|
||||||
|
|
|
@ -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;
|
use_number = tech_pvt->caller_profile->caller_id_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_decode(use_name, session);
|
||||||
|
|
||||||
switch (cid_type) {
|
switch (cid_type) {
|
||||||
case CID_TYPE_PID:
|
case CID_TYPE_PID:
|
||||||
|
|
Loading…
Reference in New Issue