提交 b1f298cf authored 作者: Michael Jerris's avatar Michael Jerris

properly set rpid screen=

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3568 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 efd27776
......@@ -951,7 +951,7 @@ static void do_invite(switch_core_session_t *session)
// forge a RPID for now KHR -- Should wrap this in an if statement so it can be turned on and off
if (switch_test_flag(caller_profile, SWITCH_CPF_SCREEN)) {
char *priv = "no";
char *screen = "no";
if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NAME)) {
priv = "name";
if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER)) {
......@@ -960,8 +960,11 @@ static void do_invite(switch_core_session_t *session)
} else if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER)) {
priv = "yes";
}
if (switch_test_flag(caller_profile, SWITCH_CPF_SCREEN)) {
screen = "yes";
}
snprintf(rpid, sizeof(rpid) - 1, "Remote-Party-ID: %s;party=calling;screen=yes;privacy=%s", tech_pvt->from_str, priv);
snprintf(rpid, sizeof(rpid) - 1, "Remote-Party-ID: %s;party=calling;screen=%s;privacy=%s", tech_pvt->from_str, screen, priv);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论