<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hi Andrew,</div>
<div> </div>
<div>kamailio.cfg was attached to my first thread.</div>
<div> </div>
<div>
<div> more /etc/kamailio/lb/kamailio.cfg</div>
<div>#!KAMAILIO</div>
<div><br/>
#!define ENABLE_TLS</div>
<div>#!define ENABLE_PIKECHECK<br/>
#!define ENABLE_AUTHCHECK</div>
<div><br/>
# force multi-homing for AWS setups<br/>
mhomed=1<br/>
# external interfaces<br/>
listen=udp:172.16.1.7:5060<br/>
listen=tcp:172.16.1.7:5060<br/>
#!ifdef ENABLE_TLS<br/>
listen=tls:172.16.1.7:5061<br/>
#!endif</div>
<div><br/>
# additional sockets to listen on, if any</div>
<div><br/>
# internal interfaces<br/>
listen=udp:127.0.0.1:5060<br/>
socket_workers=2<br/>
listen=tcp:127.0.0.1:5060</div>
<div># advertised addresses<br/>
alias=81.7.227.194:5060<br/>
#!ifdef ENABLE_TLS<br/>
alias=81.7.227.194:5061<br/>
#!endif<br/>
alias=default:5060<br/>
#!ifdef ENABLE_TLS<br/>
alias=default:5061<br/>
#!endif<br/>
alias=81.7.227.194:5060<br/>
#!ifdef ENABLE_TLS<br/>
alias=81.7.227.194:5061<br/>
#!endif<br/>
alias=81.7.227.194:5060<br/>
#!ifdef ENABLE_TLS<br/>
alias=81.7.227.194:5061<br/>
#!endif</div>
<div>#!define ENABLE_PRESENCE</div>
<div><br/>
fork=yes<br/>
children=8</div>
<div>sip_warning=no<br/>
debug=1<br/>
log_stderror=no<br/>
memdbg=5<br/>
memlog=5<br/>
log_facility=LOG_LOCAL6<br/>
log_name="lb"<br/>
mem_join=1</div>
<div>disable_tcp=no<br/>
enable_tls=yes<br/>
tcp_children=8<br/>
tcp_max_connections=2048<br/>
tls_max_connections=2048<br/>
tcp_rd_buf_size=65536<br/>
tcp_conn_wq_max=131072<br/>
tcp_keepalive=yes<br/>
tcp_crlf_ping=yes<br/>
tcp_keepcnt=3<br/>
tcp_keepidle=30<br/>
tcp_keepintvl=30<br/>
tcp_connection_lifetime=3610<br/>
tcp_accept_no_cl=yes<br/>
auto_aliases=no<br/>
mlock_pages=yes<br/>
shm_force_alloc=yes</div>
<div>user_agent_header="User-Agent: Sipwise NGCP LB 3.X"<br/>
server_header="Server: Sipwise NGCP LB 3.X"</div>
<div>dns_try_ipv6=no<br/>
dns_retr_time=1<br/>
dns_retr_no=1<br/>
dns_use_search_list=no<br/>
use_dns_cache=on<br/>
use_dns_failover=on<br/>
dns_srv_lb=on</div>
<div>tos=184</div>
<div>flags FLAG_OUTBOUND:1, FLAG_NATTEST_DISABLED:2, FLAG_UNMASK_CONTACT:3</div>
<div>mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules:/usr/lib/kamailio/modules"</div>
<div>loadmodule "corex.so"<br/>
loadmodule "sl.so"<br/>
loadmodule "pv.so"<br/>
loadmodule "rr.so"<br/>
loadmodule "maxfwd.so"<br/>
loadmodule "xlog.so"<br/>
loadmodule "usrloc.so"<br/>
loadmodule "textops.so"<br/>
loadmodule "db_text.so"<br/>
loadmodule "uri_db.so"<br/>
loadmodule "nathelper.so"<br/>
loadmodule "path.so"<br/>
loadmodule "dispatcher.so"<br/>
loadmodule "avpops.so"<br/>
loadmodule "siputils.so"<br/>
loadmodule "sanity.so"<br/>
loadmodule "ctl.so"<br/>
loadmodule "xmlrpc.so"<br/>
loadmodule "cfg_rpc.so"<br/>
loadmodule "mi_fifo.so"<br/>
loadmodule "kex.so"<br/>
loadmodule "textopsx.so"<br/>
loadmodule "htable.so"<br/>
#!ifdef ENABLE_TLS<br/>
loadmodule "tls.so"<br/>
#!endif<br/>
loadmodule "ipops.so"</div>
<div> </div>
<div>Regards,</div>
<div>Miguel</div>
</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 06. Februar 2015 um 11:17 Uhr<br/>
<b>Von:</b> "Andrew Pogrebennyk" <apogrebennyk@sipwise.com><br/>
<b>An:</b> mig@gmx.ch, spce-user@lists.sipwise.com<br/>
<b>Betreff:</b> Re: [Spce-user] kamailio.cfg ERROR: bad config file</div>
<div name="quoted-content">Miguel,<br/>
<br/>
On 02/06/2015 10:31 AM, mig@gmx.ch wrote:<br/>
> root@spce:~# kamailio -c -f /etc/kamailio/lb/kamailio.cfg<br/>
> 0(5215) : <core> [cfg.y:3409]: yyerror_at(): parse error in config file<br/>
> /etc/kamailio/lb/kamailio.cfg, line 34, column 7-13: syntax error<br/>
> 0(5215) : <core> [cfg.y:3409]: yyerror_at(): parse error in config file<br/>
> /etc/kamailio/lb/kamailio.cfg, line 34, column 7-13: hostname expected<br/>
> 0(5215) : <core> [cfg.y:3412]: yyerror_at(): parse error in config file<br/>
> /etc/kamailio/lb/kamailio.cfg, line 34, column 14:<br/>
> ERROR: bad config file (3 errors)<br/>
<br/>
What do you have on line 34 of /etc/kamailio/lb/kamailio.cfg?<br/>
Could you post the topmost 40 lines of this file (you may mask your real<br/>
IP if you want but it's important that all the spaces and line numbers<br/>
remain intact)?<br/>
<br/>
> Any suggestions how I can resolve this issue?<br/>
<br/>
<br/>
BR,<br/>
Andrew</div>
</div>
</div>
</div></div></body></html>