From: Olle Johansson Date: Tue, 27 Jan 2009 14:33:20 +0000 (+0000) Subject: Use the same branch tag in CANCEL as in INVITE X-Git-Tag: 1.4.24-rc1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc6f14e8e00281b0612de1740feb178c5d0ad3d1;p=thirdparty%2Fasterisk.git Use the same branch tag in CANCEL as in INVITE 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a88fc301e3..c4af5049e9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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);