[svn-commits] mmichelson: branch 12 r421789 - /branches/12/res/res_pjsip_caller_id.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Aug 21 16:27:21 CDT 2014


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);
 		}




More information about the svn-commits mailing list