From joel@textplus.com Fri Oct 22 01:57:19 2021 From: Joel Serrano To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] T_req(pv) not accessible in dialog event route in v5.5.2 Date: Thu, 21 Oct 2021 16:56:46 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0743432567==" --===============0743432567== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I think it could be related to: https://github.com/kamailio/kamailio/issues/2479 Commit: https://github.com/kamailio/kamailio/commit/2e7710e292a649c6c57e46d5994d3b2cf= 3815865 Thanks! Joel. On Thu, Oct 21, 2021 at 4:22 PM Joel Serrano wrote: > Hello, > > I'm in the process of updating some servers that are running Kam v5.1.4 to > v5.5.2. > > After the upgrade I've noticed that I've lost some custom metrics that we > have defined via config-script. > > Snippet of the relevant config: > > event_route[dialog:start] { > # Gather metrics regarding source IP > xlog("L_WARN", "[DLG] - Checking country for ($si | $T_req($si)) - > START\n"); > if (geoip2_match("$T_req($si)", "src")) { > # Country found > ... > } > xlog("L_WARN", "[DLG] - Checking country for ($si | $T_req($si)) - > END\n"); > } > > NOTE: xlog lines added for debugging, they normally are not there. > > > In version 5.1.4 in the logs I see: > > Oct 21 15:55:47 13cn3 sbc[22606]: WARNING: