提交 7f04f7ac authored 作者: Brian West's avatar Brian West

check decode here

上级 7b2c563e
...@@ -282,6 +282,8 @@ char *generate_pai_str(private_object_t *tech_pvt) ...@@ -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) ...@@ -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:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论