From hw@skalatan.de Sun Jun 14 17:30:57 2020 From: Henning Westerholt To: sr-dev@lists.kamailio.org Subject: Re: [sr-dev] dialog: reason behind not storing early state dialogs in db Date: Sun, 14 Jun 2020 15:30:51 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1705496421==" --===============1705496421== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, yes - this is some concern I also had. In some cases you might be come around= by just registering the proper call-back (like the uac module does). But of = course, you don't have the transaction anymore. I also found some more issues in the code related to this change. The DB inse= rt/update code holds some assumption on the dialog flags and therefore it doe= s not work without modification of this path. And this needs some more refact= oring, therefore I reverted the patch for now in git master. Cheers, Henning -----Original Message----- From: sr-dev On Behalf Of Ovidiu Sas Sent: Saturday, June 13, 2020 9:04 PM To: Kamailio (SER) - Development Mailing List Subject: Re: [sr-dev] dialog: reason behind not storing early state dialogs i= n db One observation here: early dialogs are bound to the initial INVITE transacti= on. For this reason, early dialogs should not be restored from db because the= transaction is no longer present (during failover or restart). Thanks, Ovidiu On Fri, Jun 12, 2020 at 3:35 PM Henning Westerholt wrote: > > Hi Victor, > > thanks for the feedback, I will also do some more tests. > > Cheers, > > Henning > > -----Original Message----- > From: sr-dev On Behalf Of Victor=20 > Seva > Sent: Friday, June 12, 2020 2:34 PM > To: Kamailio (SER) - Development Mailing List=20 > > Subject: Re: [sr-dev] dialog: reason behind not storing early state=20 > dialogs in db > > Hi Henning, > > On 6/12/20 10:31 AM, Henning Westerholt wrote: > > added with 37d83a5838a50350. Feedback and additional testing are of=20 > > course welcome. > > Applied 37d83a5838a50350 but I don't see any insert to the db until dialog = is confirmed. > > ``modparam("dialog","db_mode", 1)`` is in the config > > ``` > Jun 12 13:47:01 sp1 proxy[31630]: NOTICE: DEFAULT_ROUTE