[Asterisk-cvs] asterisk/channels chan_sip.c,1.331,1.332
markster at lists.digium.com
markster at lists.digium.com
Tue Apr 6 10:02:27 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv26693/channels
Modified Files:
chan_sip.c
Log Message:
Bump branch id on INVITE with auth (bug #1313)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.331
retrieving revision 1.332
diff -u -d -r1.331 -r1.332
--- chan_sip.c 5 Apr 2004 05:12:00 -0000 1.331
+++ chan_sip.c 6 Apr 2004 14:02:47 -0000 1.332
@@ -3015,9 +3015,12 @@
{
struct sip_request req;
- if (init)
+ if (init) {
+ /* Bump branch even on initial requests */
+ p->branch ^= rand();
+ snprintf(p->via, sizeof(p->via), "SIP/2.0/UDP %s:%d;branch=z9hG4bK%08x", inet_ntoa(p->ourip), ourport, p->branch);
initreqprep(&req, p, cmd, vxml_url);
- else
+ } else
reqprep(&req, p, cmd, 0, 1);
if (auth)
More information about the svn-commits
mailing list