[sr-dev] [kamailio/kamailio] cfg_rpc updates changing variable values to large random numbers (#1583)

vinesinha notifications at github.com
Tue Jul 10 19:44:40 CEST 2018


unfortunately, I have these distributed over multiple files. However, the way I set it up looks something like these blocks:

```
.
.
.
#!ifdef A
    group_name.a = A
#!else
    group_name.a = 0
#!endif
.
.
.
```

the variable used first in the file (`a` in this case) ends up being the last variable in the cfg block. Hence, that's the one that gets corrupted. 

This doesn't happen always. We might have hit an edge case where this is happening so it might be hard for you to duplicate it. 

To set these variables later, I just use:

```
kamctl kamcmd cfg.set group_name a 1
```

It is usually during these set operations that the value gets corrupted. 

-- 
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/1583#issuecomment-403908179
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180710/5c72b363/attachment.html>


More information about the sr-dev mailing list