Re: [sr-dev] [kamailio/kamailio] pv_evalx result in destination pv seems wrong (#1551)

2018-06-07 Thread Daniel-Constantin Mierla
To allow more flexibility, I increased the default number of slots from 10 to 40. Dialog specific code analysis will be considered in the future. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] pv_evalx result in destination pv seems wrong (#1551)

2018-06-07 Thread Daniel-Constantin Mierla
Closed #1551. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1551#event-1667912253___ Kamailio (SER) - Development Mailing List

Re: [sr-dev] [kamailio/kamailio] pv_evalx result in destination pv seems wrong (#1551)

2018-06-01 Thread Daniel-Constantin Mierla
The issue is that the dlg vars are using core pv buffers to copy their value before returning it. I assume they do the copy to avoid future race with their shared memory location, by cloning in pv buffers. A quick solution is to increase pv_buffer_slots value: *

Re: [sr-dev] [kamailio/kamailio] pv_evalx result in destination pv seems wrong (#1551)

2018-06-01 Thread Victor Seva
has something to do with the size of the string ``` #!KAMAILIO # ### Global Parameters # ### LOG Levels: 3=DBG, 2=INFO, 1=NOTICE, 0=WARN, -1=ERR log_stderror=yes memdbg=5 memlog=5 log_facility=LOG_LOCAL0 log_stderror=yes fork=no /* uncomment the next line to disable TCP (default

Re: [sr-dev] [kamailio/kamailio] pv_evalx result in destination pv seems wrong (#1551)

2018-06-01 Thread Victor Seva
Try this: ``` #!KAMAILIO # ### Global Parameters # ### LOG Levels: 3=DBG, 2=INFO, 1=NOTICE, 0=WARN, -1=ERR log_stderror=yes memdbg=5 memlog=5 log_facility=LOG_LOCAL0 log_stderror=yes fork=no /* uncomment the next line to disable TCP (default on) */ disable_tcp=yes /* uncomment the

Re: [sr-dev] [kamailio/kamailio] pv_evalx result in destination pv seems wrong (#1551)

2018-06-01 Thread Daniel-Constantin Mierla
This seems to be something specific for your environment. I tested with: ``` $var(fmt) = '{"srcip": "$si", "rcvip": "$Ri"}'; pv_evalx("$var(msg)", "$var(fmt)"); xlog(" fmt: $var(fmt)\n"); xlog(" msg: $var(msg)\n"); ``` And I got: ``` 2(4083) ERROR:

Re: [sr-dev] [kamailio/kamailio] pv_evalx result in destination pv seems wrong (#1551)

2018-05-31 Thread Victor Seva
log with debug enabled ``` May 31 15:31:48 PBX-2117 kamailio[43398]: INFO: