From: Mark Michelson Date: Thu, 21 Aug 2014 21:27:45 +0000 (+0000) Subject: Let's try checking the name and number, instead of the name twice. X-Git-Tag: 13.0.0-beta2~2^2~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9befb9eec3cb4082605692aec051cb2ca87915e;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_pjsip_caller_id.c b/res/res_pjsip_caller_id.c index 5e2f762b30..64940d1812 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); }