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

change rpid to default to privacy=off instead of no.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3569 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b1f298cf
...@@ -950,7 +950,7 @@ static void do_invite(switch_core_session_t *session) ...@@ -950,7 +950,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 // 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)) { if (switch_test_flag(caller_profile, SWITCH_CPF_SCREEN)) {
char *priv = "no"; char *priv = "off";
char *screen = "no"; 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";
...@@ -4120,10 +4120,7 @@ static void sip_i_invite(nua_t *nua, ...@@ -4120,10 +4120,7 @@ static void sip_i_invite(nua_t *nua,
if (!strncasecmp(argv[x], "privacy=", 8)) { if (!strncasecmp(argv[x], "privacy=", 8)) {
char *arg = argv[x] + 9; char *arg = argv[x] + 9;
if (!strcasecmp(arg, "no")) { if (!strcasecmp(arg, "yes")) {
switch_clear_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME);
switch_clear_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NUMBER);
} else if (!strcasecmp(arg, "yes")) {
switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME | SWITCH_CPF_HIDE_NUMBER); switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME | SWITCH_CPF_HIDE_NUMBER);
} else if (!strcasecmp(arg, "full")) { } else if (!strcasecmp(arg, "full")) {
switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME | SWITCH_CPF_HIDE_NUMBER); switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME | SWITCH_CPF_HIDE_NUMBER);
...@@ -4131,7 +4128,11 @@ static void sip_i_invite(nua_t *nua, ...@@ -4131,7 +4128,11 @@ static void sip_i_invite(nua_t *nua,
switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME); switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME);
} else if (!strcasecmp(arg, "number")) { } else if (!strcasecmp(arg, "number")) {
switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NUMBER); switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NUMBER);
} else {
switch_clear_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME);
switch_clear_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NUMBER);
} }
} else if (!strncasecmp(argv[x], "screen=", 7) && screen > 0) { } else if (!strncasecmp(argv[x], "screen=", 7) && screen > 0) {
char *arg = argv[x] + 8; char *arg = argv[x] + 8;
if (!strcasecmp(arg, "no")) { if (!strcasecmp(arg, "no")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论