Re: [SR-Users] shtinc throws readonly error

2016-07-08 Thread Daniel-Constantin Mierla
Hello, this is a special variable -- that's why they were called pseudo-variables in the first place. It does an atomic increment when evaluated in a expression. The interpreter doesn't trigger evaluation if the variable is not in the right side of an assignment (or parameter for functions). If

Re: [SR-Users] shtinc throws readonly error

2016-07-08 Thread Sebastian Damm
Hi, is there a reason to not allow it as a simple operation on a separate line without a left and right side? After all, it's just an incrementation of a value, so why do I have to assign it to a variable (which I don't need at this point) or use it somewhere else? I now included it into an xlog l

Re: [SR-Users] shtinc throws readonly error

2016-07-08 Thread Daniel-Constantin Mierla
Hello, you ave to use it in right side of an assignment, like: $var(x) = ... Cheers, Daniel On 08/07/16 12:20, Sebastian Damm wrote: > Hi, > > I'm trying to use this line in one route: > > $shtinc(pushedUsers=>$avp(s:authuser)); > > However, when checking the syntax of this file, Kamai

[SR-Users] shtinc throws readonly error

2016-07-08 Thread Sebastian Damm
Hi, I'm trying to use this line in one route: $shtinc(pushedUsers=>$avp(s:authuser)); However, when checking the syntax of this file, Kamailio says: 0(609) : [cfg.y:3365]: yyerror_at(): parse error in config file /etc/kamailio/kamailio_sip_proxy.cfg, line 3304, column 2-39: read only