[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.27,1.510.2.28

russell at lists.digium.com russell at lists.digium.com
Tue Dec 21 10:14:15 CST 2004


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

Modified Files:
      Tag: v1-0
	chan_sip.c 
Log Message:
fix missing "sip:" in ACK (bug #2687)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510.2.27
retrieving revision 1.510.2.28
diff -u -d -r1.510.2.27 -r1.510.2.28
--- chan_sip.c	20 Dec 2004 01:48:20 -0000	1.510.2.27
+++ chan_sip.c	21 Dec 2004 15:10:06 -0000	1.510.2.28
@@ -4384,14 +4384,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