On Mar 31, 2010 at 09:11, Juha Heinanen jh@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