[sr-dev] t_set_fr() error
Andrei Pelinescu-Onciul
andrei at iptel.org
Wed Mar 31 12:10:52 CEST 2010
On Mar 31, 2010 at 09:11, Juha Heinanen <jh at tutpro.com> wrote:
> Juha Heinanen writes:
>
> > t_set_fr("$sel(cfg_get.local.invite_timeout)",
> > "$sel(cfg_get.local.gw_timeout)");
> >
> > unfortunately, the above t_set_fr results in syslog error:
> >
> > Mar 30 21:05:10 localhost /usr/sbin/sip-proxy[31365]: ERROR: <core> [sr_module.c:1546]: Could not convert PV to int
>
> > why is that?
>
> i don't know why, but the error went away when i changed syntax of the
> function call to this:
>
> t_set_fr("@cfg_get.local.invite_timeout", "@cfg_get.local.gw_timeout);
>
> so looks like $sel is not equivalent to @.
Could you try something like:
$x=$sel(...));
$y=@...;
$z=(int)$sel(...);
and print the values with xlog?
If $x!=$y, please put it on the bug tracker (and assign Daniel to it
:-)).
Andrei
More information about the sr-dev
mailing list