From bkaufman@bcmone.com Wed Jul 5 16:14:34 2023 From: Kaufman To: sr-users@lists.kamailio.org Subject: [SR-Users] event_route[tm:local-response] only executes a few times Date: Wed, 05 Jul 2023 16:14:11 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0870831426==" --===============0870831426== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I'm writing a 302 redirect server and wanting to capture some events on all r= eplies, so I'm trying to do this in event_route[tm:local-response], but I not= iced that the event route is only called a few times for the first few reques= ts, and then never gets executed again. This is the simplest case in which I= can reproduce the issue: #!KAMAILIO loadmodule "pv" loadmodule "tm" loadmodule "xlog" route { xinfo("[$rm $ci-$cs] Src:[$si:$sp] RURI:[$ru] To:[$tu] From:[$fu]\n"); t_send_reply("404", "Not Found"); exit; } event_route[tm:local-response] { xcrit("[$rm $ci-$cs] tm:local-response replied locally\n"); } If I start Kamailio with kamailio -ddDDeE it has 8 children. If I use sipp t= o send 10 requests, this is what I see in the kamailio logs. The critical lin= e in the event route is only printed four times. This is tested on 5.7.0 and= 5.6.4 9(66) INFO: