[sr-dev] [kamailio/kamailio] unquoted value in global vars got segafult or error at cfg files (#1779)

Daniel-Constantin Mierla notifications at github.com
Wed Dec 26 12:14:58 CET 2018


The **custom global variables** are defined as `groupname.varname=value desc text`, where you can choose pretty much any groupname and varname (iirc, apart of some predefined keywords). The value must be either string (in between quotes) or integer (number).

Because listen or aliases can accept unquoted values, is because those are global core parameters with a specific syntax. To avoid having them swallow next lines, you can use `;` after their value, like:

```
alias=myhostname.com;
```
It is a common practice to let global core parameters ended by end-of-line, because most of them are single value, but for some of them the value can span across lines, so you can use `;` to terminate it if you get a conflict with the next line.

So this is not an issue, but how some elements are defined.

-- 
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/1779#issuecomment-449951671
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20181226/c3a7c1a4/attachment.html>


More information about the sr-dev mailing list