[Asterisk-cvs] asterisk/channels chan_sip.c,1.292,1.292.2.1

markster at lists.digium.com markster at lists.digium.com
Sat Feb 7 01:05:29 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	chan_sip.c 
Log Message:
Insert blank after REFER (bug #997)
Correct path to VM sample (bug #994)
Make manager interface non-blocking (bug #861)
Don't bork on empty from in SIP (bug #887)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.292
retrieving revision 1.292.2.1
diff -u -d -r1.292 -r1.292.2.1
--- chan_sip.c	2 Feb 2004 23:51:25 -0000	1.292
+++ chan_sip.c	7 Feb 2004 07:14:13 -0000	1.292.2.1
@@ -3305,6 +3305,7 @@
 	add_header(&req, "Refer-To", referto);
 	if (strlen(p->our_contact))
 		add_header(&req, "Referred-By", p->our_contact);
+	add_blank_header(&req);
 	return send_request(p, &req, 1, p->ocseq);
 }
 
@@ -3888,8 +3889,10 @@
 	if ((a = strchr(c, ';'))) {
 		*a = '\0';
 	}
-	if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
-		*a = '\0';
+	if (fr) {
+		if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
+			*a = '\0';
+		}
 	}
 	if (sipdebug)
 		ast_verbose("Looking for %s in %s\n", c, p->context);




More information about the svn-commits mailing list