From andre.emanuel.barbosa@gmail.com Wed Apr 21 11:31:53 2021 From: Andre Barbosa To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Dialog - Profile cleanup before event_route[dialog:end] Date: Wed, 21 Apr 2021 10:31:32 +0100 Message-ID: In-Reply-To: <69c3f5ea-561b-3909-8f67-9468810140c1@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0316712337==" --===============0316712337== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, Makes perfect sense. Hope this thread will help someone with the same doubt in the future. We manage to workaround by setting a dlg_var() with the name of our traffic profile. It works for our use-case. Thanks! Andre On Tue, Apr 20, 2021 at 12:05 PM Daniel-Constantin Mierla wrote: > > Hello, > > On 14.04.21 16:20, Andre Barbosa wrote: > > Hi guys, > > > > I was trying to read the profile of a dialog on the > > event_route[dialog:end] and noticed that dialog profiles are not > > available at this point. > > > > My cfg code that doesn't work: > > > > event_route[dialog:end] { > > if (is_in_profile("orig")) { > > xinfo("this dialog belongs to a orig call\n"); > > route(EMIT_ORIG_CALL_ENDED); > > } > > } > > > > Log: > > | 3(12) INFO: