Re: [sr-dev] trouble with testing $var

2009-11-16 Thread Andrei Pelinescu-Onciul
On Nov 16, 2009 at 18:19, Edson - Lists <4li...@gmail.com> wrote: > Andrei, > > Great news > > > Latest sr_3.0 should have them, as warnings, e.g.: > > WARNING: [rvalue.c:987]: automatic string to int conversion for > > "avp_test1" failed > > WARNING: [rvalue.c:1838]: rval expression conver

Re: [sr-dev] trouble with testing $var

2009-11-16 Thread Edson - Lists
Andrei, Great news > Latest sr_3.0 should have them, as warnings, e.g.: > WARNING: [rvalue.c:987]: automatic string to int conversion for > "avp_test1" failed > WARNING: [rvalue.c:1838]: rval expression conversion to int > failed (40,12-40,25) > ^^^ expression position in t

Re: [sr-dev] trouble with testing $var

2009-11-16 Thread Andrei Pelinescu-Onciul
On Nov 10, 2009 at 12:49, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > We could generate an error message, but only at runtime (because we > > don't know the type of $var(tmp) at script compile time). > > andrei, > > run-time would be great. current no-error implementation re

Re: [sr-dev] trouble with testing $var

2009-11-10 Thread Juha Heinanen
Andrei Pelinescu-Onciul writes: > We could generate an error message, but only at runtime (because we > don't know the type of $var(tmp) at script compile time). andrei, run-time would be great. current no-error implementation results in many non-working scripts, where people wonder what is w

Re: [sr-dev] trouble with testing $var

2009-11-10 Thread Andrei Pelinescu-Onciul
On Nov 09, 2009 at 22:58, Juha Heinanen wrote: > Andrei Pelinescu-Onciul writes: > > > >$var(tmp) = $(ru{uri.param,alias}); > > >xlog("L_INFO", "Alias param is <$var(tmp)>\n"); > > >if ($var(tmp)) { > > > xlog("L_INFO", "Alias param is <$var(tmp)>\n"); > > > $du = $var(

Re: [sr-dev] trouble with testing $var

2009-11-09 Thread Juha Heinanen
Andrei Pelinescu-Onciul writes: > >$var(tmp) = $(ru{uri.param,alias}); > >xlog("L_INFO", "Alias param is <$var(tmp)>\n"); > >if ($var(tmp)) { > >xlog("L_INFO", "Alias param is <$var(tmp)>\n"); > >$du = $var(tmp); > > shouldn't it be $du =

Re: [sr-dev] trouble with testing $var

2009-11-09 Thread Andrei Pelinescu-Onciul
On Nov 08, 2009 at 12:55, Juha Heinanen wrote: > i wrote alias_contact() function and seems to work fine. i have not > yet written handle_alias(), but tried to first use scripting means for > that. that led into trouble with testing is $var has value. > > i have this piece of code: > >xlog

[sr-dev] trouble with testing $var

2009-11-08 Thread Juha Heinanen
i wrote alias_contact() function and seems to work fine. i have not yet written handle_alias(), but tried to first use scripting means for that. that led into trouble with testing is $var has value. i have this piece of code: xlog("L_INFO", "R-URI is <$ru>\n"); $var(tmp) = $(ru{uri.param,