[Asterisk-cvs] asterisk/channels chan_sip.c,1.276,1.277

jeremy at lists.digium.com jeremy at lists.digium.com
Mon Jan 12 20:26:39 CST 2004


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

Modified Files:
	chan_sip.c 
Log Message:
via z9hG4bK issue. Bug #663


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.276
retrieving revision 1.277
diff -u -d -r1.276 -r1.277
--- chan_sip.c	13 Jan 2004 01:59:36 -0000	1.276
+++ chan_sip.c	13 Jan 2004 02:18:26 -0000	1.277
@@ -2703,8 +2703,11 @@
 	struct sip_request req;
 	if (p->canreinvite == REINVITE_UPDATE)
 		reqprep(&req, p, "UPDATE", 0);
-	else
+	else {
+		p->branch++;
+		snprintf(p->via, sizeof(p->via), "SIP/2.0/UDP %s:%d;branch=z9hG4bK%08x", inet_ntoa(p->ourip), ourport, p->branch);
 		reqprep(&req, p, "INVITE", 0);
+	}
 	add_header(&req, "Allow", ALLOWED_METHODS);
 	add_sdp(&req, p, rtp, vrtp);
 	/* Use this as the basis */




More information about the svn-commits mailing list