Author: mmichelson Date: Thu Aug 21 16:27:19 2014 New Revision: 421789 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421789 Log: Let's try checking the name and number, instead of the name twice.
Modified: branches/12/res/res_pjsip_caller_id.c Modified: branches/12/res/res_pjsip_caller_id.c URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_caller_id.c?view=diff&rev=421789&r1=421788&r2=421789 ============================================================================== --- branches/12/res/res_pjsip_caller_id.c (original) +++ branches/12/res/res_pjsip_caller_id.c Thu Aug 21 16:27:19 2014 @@ -468,7 +468,7 @@ 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); } -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits