properly set rpid screen=
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3568 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
efd277768f
commit
b1f298cf45
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue