mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@421790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user