<div dir="ltr">Hello, <div><br></div><div>I'm in the process of updating some servers that are running Kam v5.1.4 to v5.5.2.</div><div><br></div><div><div>After the upgrade I've noticed that I've lost some custom metrics that we have defined via config-script. </div><div><br></div><div>Snippet of the relevant config:</div><div><br></div></div><div><font face="monospace">event_route[dialog:start] {<br>    # Gather metrics regarding source IP<br>    xlog("L_WARN", "[DLG] - Checking country for ($si | $T_req($si)) - START\n");<br>    if (geoip2_match("$T_req($si)", "src")) {<br>        # Country found<br>        ...<br>    }<br>    xlog("L_WARN", "[DLG] - Checking country for ($si | $T_req($si)) - END\n");<br>}</font><br></div><div><br></div><div>NOTE: xlog lines added for debugging, they normally are not there.</div><div><br></div><div><br></div><div>In version 5.1.4 in the logs I see: </div><div><br></div><div><font face="monospace">Oct 21 15:55:47 13cn3 sbc[22606]: WARNING: <script>: [DLG] - Checking country for (A.B.C.D | 186.185.186.7) - START<br>Oct 21 15:55:47 13cn3 sbc[22606]: WARNING: <script>: [DLG] - Checking country for (A.B.C.D | 186.185.186.7) - END<br></font></div><div><br></div><div>The same config, on v5.5.2 is returning:</div><div><br></div><div><font face="monospace">Oct 21 15:57:08 sbc0504 sbc[22606]: WARNING: <script>: [DLG] - Checking country for (A.B.C.D | <null>) - START<br>Oct 21 15:57:08 sbc0504 sbc[22606]: WARNING: <script>: [DLG] - Checking country for (A.B.C.D | <null>) - END<br></font></div><div><br></div><div>After enabling debug logs I see:</div><div><br></div><div><font face="monospace">WARNING: <script>: [DLG] - Checking country for (198.1.55.124 | <null>) - START<br><b><font color="#ff0000">DEBUG: tmx [t_var.c:309]: pv_get_t_var_req(): used in unsupported route block - type 64<br></font></b>DEBUG: geoip2 [geoip2_pv.c:488]: geoip2_update_pv(): attempt to match: <null><br>DEBUG: geoip2 [geoip2_pv.c:491]: geoip2_update_pv(): no match for: <null></font><br></div><div><br></div><div><br></div><div>Did something change in the tmx module that could affect $T_req(pv) being accessible in the dialog:start event_route?</div><div><br></div><div>Any alternatives to get the source IP of the request (not the reply) in the dialog:start event_route?</div><div><br></div><div>Let me know if you prefer that I open a ticket for this in GH.</div><div><br></div><div>Thanks, </div><div>Joel.</div><div><br></div><div><br></div></div>