]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Let's try checking the name and number, instead of the name twice.
authorMark Michelson <mmichelson@digium.com>
Thu, 21 Aug 2014 21:27:19 +0000 (21:27 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 21 Aug 2014 21:27:19 +0000 (21:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@421789 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip_caller_id.c

index 90d413579f962a01e45184f39ac2feba338c7dd8..4de1f3d7e6b9358b99574a376edefa2bb3767f89 100644 (file)
@@ -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);
                }