[asterisk-commits] mmichelson: branch group/issue8824 r154019 - /team/group/issue8824/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 3 14:22:25 CST 2008


Author: mmichelson
Date: Mon Nov  3 14:22:25 2008
New Revision: 154019

URL: http://svn.digium.com/view/asterisk?view=rev&rev=154019
Log:
The logic from a strncasecmp call was reversed here.


Modified:
    team/group/issue8824/channels/chan_sip.c

Modified: team/group/issue8824/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/issue8824/channels/chan_sip.c?view=diff&rev=154019&r1=154018&r2=154019
==============================================================================
--- team/group/issue8824/channels/chan_sip.c (original)
+++ team/group/issue8824/channels/chan_sip.c Mon Nov  3 14:22:25 2008
@@ -11978,7 +11978,7 @@
 	if (!end)
 		return 0;
 	*end++ = '\0';
-	if (strncasecmp(start, "anonymous at anonymous.invalid", 27)) {
+	if (!strncasecmp(start, "anonymous at anonymous.invalid", 27)) {
 		callingpres = AST_PRES_PROHIB_USER_NUMBER_NOT_SCREENED;
 		/*XXX Assume no change in cid_num. Perhaps it should be 
 		 * blanked?




More information about the asterisk-commits mailing list