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

Daniel-Constantin Mierla notifications at github.com
Fri Jun 1 10:35:38 CEST 2018


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: <script>: ==== fmt: {"srcip": "$si", "rcvip": "$Ri"}
2(4083) ERROR: <script>: ==== msg: {"srcip": "127.0.0.1", "rcvip": "127.0.0.1"}
```

Can you test if pv_evalx() is successful? Did you set any pv-related global parameters?

-- 
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#issuecomment-393810270
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180601/2342268a/attachment.html>


More information about the sr-dev mailing list