[sr-dev] [kamailio/kamailio] Segfault when calling $sel(cfg_get...) (#1159)

Daniel-Constantin Mierla notifications at github.com
Thu Jun 29 12:05:56 CEST 2017


I can't reproduce, using master branch, but should be the same code. I tried with the default config adding at the top of request_route:

```
		xlog("=====+++ cfg var: $sel(cfg_get.wurst.wasser)\n");
		$var(cw) = $sel(cfg_get.wurst.wasser);
		xlog("=====+++ var: $var(cw)\n");
```

The definition was like in your example:

```
wurst.wasser = "mic check 123" desc "bla"
```

The logs were:

```
 1(41976) DEBUG: <core> [core/select.c:412]: run_select(): Calling SELECT 0x1078e1230
 1(41976) ERROR: <script>: =====+++ cfg var: mic check 123
 1(41976) DEBUG: <core> [core/select.c:412]: run_select(): Calling SELECT 0x1078e1230
 1(41976) ERROR: <script>: =====+++ var: mic check 123
```

Might be something specific to your config...

-- 
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/1159#issuecomment-311922129
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170629/7d7ac0b2/attachment.html>


More information about the sr-dev mailing list