[asterisk-commits] russell: trunk r151554 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 22 12:44:06 CDT 2008


Author: russell
Date: Wed Oct 22 12:44:05 2008
New Revision: 151554

URL: http://svn.digium.com/view/asterisk?view=rev&rev=151554
Log:
Fix this check to use the proper variable (the result from get_in_brackets)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=151554&r1=151553&r2=151554
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Oct 22 12:44:05 2008
@@ -9773,7 +9773,7 @@
 
 	ast_copy_string(to, get_header(&p->initreq, "To"), sizeof(to));
 	c = get_in_brackets(to);
-	if (strncasecmp(to, "sip:", 4) && strncasecmp(to, "sips:", 5)) {
+	if (strncasecmp(c, "sip:", 4) && strncasecmp(c, "sips:", 5)) {
 		ast_log(LOG_WARNING, "Huh?  Not a SIP header (%s)?\n", to);
 		return -1;
 	}




More information about the asterisk-commits mailing list