[Asterisk-cvs] asterisk/channels chan_sip.c,1.522,1.523

markster at lists.digium.com markster at lists.digium.com
Thu Oct 7 11:46:21 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Fix which one we use initreqprep vs. reqprep (bug #2591, 2596)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.522
retrieving revision 1.523
diff -u -d -r1.522 -r1.523
--- chan_sip.c	7 Oct 2004 15:46:08 -0000	1.522
+++ chan_sip.c	7 Oct 2004 15:47:39 -0000	1.523
@@ -3863,7 +3863,7 @@
 	char tmp[256];
 	char tmp2[256];
 	char clen[20];
-	reqprep(&req, p, "NOTIFY", 0, 1);
+	initreqprep(&req, p, "NOTIFY", NULL);
 	add_header(&req, "Event", "message-summary");
 	add_header(&req, "Content-Type", notifymime);
 
@@ -3896,7 +3896,7 @@
 	struct sip_request req;
 	char tmp[256];
 	char clen[20];
-	initreqprep(&req, p, "NOTIFY", NULL);
+	reqprep(&req, p, "NOTIFY", 0, 1);
 	snprintf(tmp, sizeof(tmp), "refer;id=%d", cseq);
 	add_header(&req, "Event", tmp);
 	add_header(&req, "Subscription-state", "terminated;reason=noresource");




More information about the svn-commits mailing list