diff options
author | Mark Michelson <mmichelson@digium.com> | 2014-08-21 21:28:16 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2014-08-21 21:28:16 +0000 |
commit | 12d34bb12fe7e1478f30122b40042fd7746e8bd7 (patch) | |
tree | 06ab5f255345c459772160b46a1f029569a3f536 | |
parent | 2150daf748a7ea0a32d2160ba5959041e9dfe07a (diff) |
Let's try checking the name and number, instead of the name twice.
........
Merged revisions 421789 from http://svn.asterisk.org/svn/asterisk/branches/12
........
Merged revisions 421790 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@421791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | res/res_pjsip_caller_id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_caller_id.c b/res/res_pjsip_caller_id.c index 5e2f762b3..64940d181 100644 --- a/res/res_pjsip_caller_id.c +++ b/res/res_pjsip_caller_id.c @@ -468,7 +468,7 @@ static void add_privacy_header(pjsip_tx_data *tdata, const struct ast_party_id * old_privacy = pjsip_msg_find_hdr_by_name(tdata->msg, &pj_privacy_name, NULL); if ((id->name.presentation & AST_PRES_RESTRICTION) == AST_PRES_ALLOWED && - (id->name.presentation & AST_PRES_RESTRICTION) == AST_PRES_ALLOWED) { + (id->number.presentation & AST_PRES_RESTRICTION) == AST_PRES_ALLOWED) { if (old_privacy) { pj_list_erase(old_privacy); } |