Re: [SR-Users] $var(name) - Private memory variables

2018-07-21 Thread John Petrini
Thanks for clarifying Alex. First time I've heard of dlg_var, good to know. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] $var(name) - Private memory variables

2018-07-21 Thread Sergey Safarov
Thank you John and Alex for clean description. I will test your suggestions and give feedback. Sergey сб, 21 июл. 2018 г. в 21:40, Alex Balashov : > On Sat, Jul 21, 2018 at 02:33:45PM -0400, John Petrini wrote: > > > You need to use an avp or an xavp instead of a var. As far as I > understand

Re: [SR-Users] $var(name) - Private memory variables

2018-07-21 Thread Alex Balashov
On Sat, Jul 21, 2018 at 02:33:45PM -0400, John Petrini wrote: > You need to use an avp or an xavp instead of a var. As far as I understand > it a var is tied to a particular thread (which will be reused) while avp's > live in shared memory and are unique to each dialog. Almost accurate. (X)AVPs a

Re: [SR-Users] $var(name) - Private memory variables

2018-07-21 Thread John Petrini
You need to use an avp or an xavp instead of a var. As far as I understand it a var is tied to a particular thread (which will be reused) while avp's live in shared memory and are unique to each dialog. ___ Kamailio (SER) - Users Mailing List sr-users@lis

Re: [SR-Users] $var(name) - Private memory variables

2018-07-21 Thread Alex Balashov
Hi Sergey, $var()s live in the "private package memory" of every process, so changing that variable in one process does not affect its value in any other process. On Sat, Jul 21, 2018 at 08:10:27PM +0300, Sergey Safarov wrote: > Hello > I have faced when case when private var defined as $var(jso

[SR-Users] $var(name) - Private memory variables

2018-07-21 Thread Sergey Safarov
Hello I have faced when case when private var defined as $var(json_request) is share between different SIP messages. In my case first time this var is used from registration processing route. Then var with same name is used PUBLISH messge processing. And i be able to this value defined from registr