[Asterisk-cvs] asterisk/channels chan_sip.c,1.595,1.596

markster at lists.digium.com markster at lists.digium.com
Mon Dec 20 04:39:12 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv9646/channels

Modified Files:
	chan_sip.c 
Log Message:
Minor ACk fix (bug #2687, again)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.595
retrieving revision 1.596
diff -u -d -r1.595 -r1.596
--- chan_sip.c	19 Dec 2004 20:50:55 -0000	1.595
+++ chan_sip.c	20 Dec 2004 09:35:11 -0000	1.596
@@ -4486,14 +4486,14 @@
 	snprintf(pvt->our_contact, sizeof(pvt->our_contact) - 1, "<%s>", c);
 
 
+	strncpy(pvt->okcontacturi, c, sizeof(pvt->okcontacturi) - 1);
+	
 	/* Make sure it's a SIP URL */
 	if (strncasecmp(c, "sip:", 4)) {
 		ast_log(LOG_NOTICE, "'%s' is not a valid SIP contact (missing sip:) trying to use anyway\n", c);
 	} else
 		c += 4;
 
-	strncpy(pvt->okcontacturi, c, sizeof(pvt->okcontacturi) - 1);
-	
 	/* Ditch arguments */
 	n = strchr(c, ';');
 	if (n) 




More information about the svn-commits mailing list