From notifications@github.com Thu Jul 21 13:25:15 2022 From: patrickarton To: sr-dev@lists.kamailio.org Subject: [sr-dev] [kamailio/kamailio] incomplete values and Wrong Counting for $hfl and $hflc (Issue #3194) Date: Thu, 21 Jul 2022 04:25:06 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1025885932==" --===============1025885932== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ### Description the counting and values provides by $hfl and $hflc are wrong and imcomplete ### Troubleshooting #### Reproduction #### Debugging Data ``` route { $var(hname) =3D "Record-Route"; if (is_present_hf_pv("$var(hname)")){ $var(i) =3D 0; $var(hdrc) =3D $hflc($var(hname)); xlog("there are $var(hdrc) values for $var(hname)\r\n"); xlog("------------------------------------------\r\n"); =09 =09 while ($var(i) < $var(hdrc)){ $var(val) =3D $(hfl($var(hname))[$var(i)]); $var(sip_header_ip) =3D $(var(val){nameaddr.uri}{uri.host}); if ($var(sip_header_ip) !=3D 0){ xlog("checking $var(sip_header_ip) in $var(hname) \r\n"); } $var(i) =3D $var(i) + 1; } } } ``` #### Log Messages ``` 0(3729) ERROR: