[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.3,1.510.2.4

russell at lists.digium.com russell at lists.digium.com
Wed Oct 6 18:14:10 CDT 2004


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

Modified Files:
      Tag: v1-0
	chan_sip.c 
Log Message:
fix MWI for SIP (bug #2582)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510.2.3
retrieving revision 1.510.2.4
diff -u -d -r1.510.2.3 -r1.510.2.4
--- chan_sip.c	5 Oct 2004 02:13:00 -0000	1.510.2.3
+++ chan_sip.c	6 Oct 2004 22:15:32 -0000	1.510.2.4
@@ -3941,8 +3941,8 @@
 	add_header(&req, "Event", "message-summary");
 	add_header(&req, "Content-Type", notifymime);
 
-	snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\n", newmsgs ? "yes" : "no");
-	snprintf(tmp2, sizeof(tmp2), "Voicemail: %d/%d\n", newmsgs, oldmsgs);
+	snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\r\n", newmsgs ? "yes" : "no");
+	snprintf(tmp2, sizeof(tmp2), "Voicemail: %d/%d\r\n", newmsgs, oldmsgs);
 	snprintf(clen, sizeof(clen), "%d", (int)(strlen(tmp) + strlen(tmp2)));
 	add_header(&req, "Content-Length", clen);
 	add_line(&req, tmp);




More information about the svn-commits mailing list