From miconda@gmail.com Tue Sep 29 11:32:16 2020 From: Daniel-Constantin Mierla To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Rewrite BYE to Cancel Date: Tue, 29 Sep 2020 11:32:05 +0200 Message-ID: In-Reply-To: =?utf-8?q?=3CHE1PR0102MB266888316CB455CDFB54A0F7E0320=40HE1PR01?= =?utf-8?q?02MB2668=2Eeurprd01=2Eprod=2Eexchangelabs=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1616812361==" --===============1616812361== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, do you have reparse invite modparam for tm set? The Contact header should not be added to locally generated cancel requests as I could see on a quick check over the code in master branch (but I do not recall changes in this part for many years). Maybe you can grab the pcap/ngrep output with sip traffic for such case to see if we can spot any leads about what happens there. Cheers, Daniel On 29.09.20 02:54, Lars Olsson wrote: > > Hi > > =C2=A0 > > A follow up question on a almost one year old case. > > > t_cancel_callid() is still working good. > > > However, a new calling scenario towards the same system just got me > another issue.=C2=A0 > > > The Cancel request generated by=C2=A0t_cancel_callid()=C2=A0is not accepted= by > this old legacy system. > > I have not yet confirmed it, but it looks like the only difference > form other Cancel request is that=C2=A0t_cancel_callid() generates a Cancel > with a Contact header. > > > Should the Contact header really be inside the Cancel request? > > Is it possible to disable it? > > > Running Kamailio 5.3.6 > > > Best Regards, > > Lars > > > > ------------------------------------------------------------------------ > *From:* Lars Olsson > *Sent:* Saturday, October 26, 2019 4:10 PM > *To:* Kamailio (SER) - Users Mailing List > ; miconda(a)gmail.com > *Subject:* Re: [SR-Users] Rewrite BYE to Cancel > =C2=A0 > Hi all, > > I just want to report back.=C2=A0 > Daniels suggestion worked great! > Thanks a lot for your input. > > On the "incorrect" BYE request, trigger a cancel for the INVITE with > t_cancel_callid() using call-id and cseq of the INVITE request.=C2=A0 (Cseq > was not the same on INVITE and BYE). > Then reply with 200 OK to the BYE message. > > Cheers, > Lars > ------------------------------------------------------------------------ > *From:* Daniel-Constantin Mierla > *Sent:* Friday, October 25, 2019 1:32 PM > *To:* Lars Olsson ; Kamailio (SER) - Users > Mailing List > *Subject:* Re: [SR-Users] Rewrite BYE to Cancel > =C2=A0 > > Run with debug=3D3 and see if you get other log messages from > t_cancel_callid() execution. > > > Cheers, > Daniel > > > On 25.10.19 13:09, Lars Olsson wrote: >> Sorry for forgetting to that result: >> ERROR: