]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use the same branch tag in CANCEL as in INVITE
authorOlle Johansson <oej@edvina.net>
Tue, 27 Jan 2009 14:33:20 +0000 (14:33 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 27 Jan 2009 14:33:20 +0000 (14:33 +0000)
Originally putnopvut implemented some changes in revision 142079 that according to the bug report seemed to have worked then, but somehow fails now.
I guess code, as humans, get old and forget stuff. Anyway, this bug caused CANCEL not to work with picky systems.

Thanks Fredrik for pointing out where the bug in the SIP messaging was.

(closes issue #14346)
Reported by: oej
Patches:
      bug14346.diff uploaded by oej (license 306)
Tested by: oej

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@171527 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a88fc301e3154d1f941d1eef2b50d895ad823b97..c4af5049e96b8b9609a23374ad8dcafc0034076f 100644 (file)
@@ -7200,7 +7200,7 @@ static int transmit_invite(struct sip_pvt *p, int sipmethod, int sdp, int init)
                if (init > 1)
                        initreqprep(&req, p, sipmethod);
                else
-                       reqprep(&req, p, sipmethod, 0, 1);
+                       reqprep(&req, p, sipmethod, 0, 0);      
        } else
                reqprep(&req, p, sipmethod, 0, 1);