<h3>Description</h3>
<p>due the behaviour of the variable "alias" the other that use dots inside are misinterpreted: seems ambiguity in the grammar with alias and listen respect other vars that have "dots" in values.</p>
<p>Both alias and listen can have an unquoted host list as value. An unquoted host is a list of<br>
IDs separated by ‘.’. Since EOL is not taken into account, then <code>alias=foo.bar</code> followed by <code>myvar.msg=2.3.4.5</code> is interpreted as: <code>alias=foo.bar myvar.msg</code></p>
<p>bug of course in issue <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="393185784" data-permission-text="Issue title is private" data-url="https://github.com/kamailio/kamailio/issues/1773" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/1773/hovercard" href="https://github.com/kamailio/kamailio/issues/1773">#1773</a> nobody check that right?</p>
<h3>Troubleshooting</h3>
<p>kamailio seems does not reconoce it the global variable in kamailio.cfg file <strong>if no double quoted the value itselft! but if are not global variables, alias variable can be unquoted!</strong></p>
<p>prevousli done in isues:</p>
<ul>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="393185784" data-permission-text="Issue title is private" data-url="https://github.com/kamailio/kamailio/issues/1773" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/1773/hovercard" href="https://github.com/kamailio/kamailio/issues/1773">#1773</a> closed by a comment that does not make sense due i configured in right way</li>
<li>after furter investigation seems due the alias variable that implies a "dot" inside the value</li>
</ul>
<p>seems the "dots" are misinterperted due the presence of the aliases variable that already are present! and that generated a very very older problem!</p>
<h4>Reproduction</h4>
<p>download, configure and make build of kamailio<br>
use the main config file<br>
in that file put only one change, presicelly and adition:<br>
<code>kamailio.bindip=10.101.10.10</code></p>
<p><strong>bur using doble coutes seems there no problem</strong>  this are not documented and seems its and ancient bug</p>
<h4>Log Messages</h4>
<pre><code> 0(1542) DEBUG: <core> [core/modparam.c:83]: set_mod_param_regex(): 'debugger' matches module 'debugger'
 0(1542) DEBUG: <core> [core/sr_module.c:811]: find_param_export(): found <log_level_name> in module debugger [/usr/lib/x86_64-linux-gnu/kamailio/modules/debugger.so]
 0(1542) DEBUG: <core> [core/modparam.c:99]: set_mod_param_regex(): found <log_level_name> in module debugger [/usr/lib/x86_64-linux-gnu/kamailio/modules/debugger.so]
 0(1542) CRITICAL: <core> [core/cfg.y:3450]: yyerror_at(): parse error in config file kamailio.cfg, line 9, column 6: syntax error
 0(1542) CRITICAL: <core> [core/cfg.y:3450]: yyerror_at(): parse error in config file kamailio.cfg, line 9, column 6: unknown config variable
 0(1542) CRITICAL: <core> [core/cfg.y:3447]: yyerror_at(): parse error in config file kamailio.cfg, line 9, column 7-8: 
ERROR: bad config file (3 errors)
 0(1542) WARNING: <core> [core/ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1
</code></pre>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.1.6 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 4.9.2
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>Linux ip-10-101-2-78 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1779">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZbmOn1-zokOfADi78h2BIrQ_58m5ks5u8adxgaJpZM4ZgzVm">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZcfFdEIP86F9L5jSLurI60bA-l28ks5u8adxgaJpZM4ZgzVm.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"unquoted value in global vars got segafult or error at cfg files (#1779)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1779"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1779",
"url": "https://github.com/kamailio/kamailio/issues/1779",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>