From david.villasmil.work@gmail.com Tue May 4 16:29:23 2021 From: David Villasmil To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] possible bug on {param.value,name} Date: Tue, 04 May 2021 15:29:06 +0100 Message-ID: In-Reply-To: <8b862391-8725-f95a-237d-99e46f5d7bd8@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1840955516==" --===============1840955516== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Daniel, Yes, initially my question was about the tcpops returning an error, but then i realized i was passing the parameter as it was returned by $var(conid) =3D $(hdr(Route){uri.param,wsconnid}) Which had an extra ">" at the end. But the problem wasn't really with the tcpops function, but with the transformation. Thanks for taking the time to read the emails :) Regards, David Villasmil email: david.villasmil.work(a)gmail.com phone: +34669448337 On Tue, May 4, 2021 at 3:08 PM Daniel-Constantin Mierla wrote: > The email written by you, to which I replied, had: > > """ > but now i'd really like to understand why $var(whatever) which contains > "4" would result in: > > ERROR: [core/sr_module.c:1638]: get_int_fparam(): Could not convert > PV to int > ERROR: tcpops [tcpops_mod.c:374]: w_tcp_conid_state(): invalid parameter > 'conid' (must be a number) > > ? > """ > > So the question/error was about tcpops function ... maybe you wanted to > mean something else, or I do not understand properly ... ?!?! > > Cheers, > Daniel > > > On 04.05.21 15:53, David Villasmil wrote: > > Not really, the question was about > > $var(conid) =3D $(hdr(Route){uri.param,wsconnid}) > > which returns an extra ">" from: > > Route: > > if i print $var(conid) i would get: > > May 3 19:24:45 ip-10-231-32-37 /usr/sbin/kamailio[10015]: ERROR: >