提交 bd6ff49d authored 作者: Anthony Minessale's avatar Anthony Minessale

send rpid regardless of screen value

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6396 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 7d9e3c57
...@@ -544,6 +544,8 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) ...@@ -544,6 +544,8 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
char *invite_contact = NULL, *to_str, *use_from_str, *from_str, *url_str; char *invite_contact = NULL, *to_str, *use_from_str, *from_str, *url_str;
const char *transport = "udp", *t_var; const char *transport = "udp", *t_var;
char *rpid_domain = "cluecon.com", *p; char *rpid_domain = "cluecon.com", *p;
const char *priv = "off";
const char *screen = "no";
if (switch_strlen_zero(tech_pvt->dest)) { if (switch_strlen_zero(tech_pvt->dest)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "URL Error! [%s]\n", tech_pvt->dest); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "URL Error! [%s]\n", tech_pvt->dest);
...@@ -612,9 +614,6 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) ...@@ -612,9 +614,6 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
/* TODO: We should use the new tags for making an rpid and add profile options to turn this on/off */ /* TODO: We should use the new tags for making an rpid and add profile options to turn this on/off */
if (switch_test_flag(caller_profile, SWITCH_CPF_SCREEN)) {
const char *priv = "off";
const char *screen = "no";
if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NAME)) { if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NAME)) {
priv = "name"; priv = "name";
if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER)) { if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER)) {
...@@ -632,7 +631,6 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) ...@@ -632,7 +631,6 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
tech_pvt->caller_profile->caller_id_number, tech_pvt->caller_profile->caller_id_number,
rpid_domain, rpid_domain,
screen, priv); screen, priv);
}
switch_safe_free(d_url); switch_safe_free(d_url);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论