<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<BR>
&nbsp;<BR>
I&nbsp;made an attempt at installing kamailio-3.0.3 in a box yesterday and ran into a config file error on testing the installation.<BR>
&nbsp;<BR>
0(3232): &lt;core&gt; [cfg.y:3333] parse error in config file /usr/local/etc/kamailio/kamailio.cfg &nbsp;line 24,&nbsp;column 6 : synthax error<BR>
0(3232): &lt;core&gt; [cfg.y:3333] parse error in config file /usr/local/etc/kamailio/kamailio.cfg &nbsp;line 74,&nbsp;column 6 : unkown config variable<BR>
0(3232): &lt;core&gt; [cfg.y:3333] parse error in config file /usr/local/etc/kamailio/kamailio.cfg &nbsp;line 74,&nbsp;column 7 : <BR>
&nbsp;<BR>
&nbsp;<BR>
For me, this error is unexplainable as i am yet to find anything wrong with the lines in question. ( besides, i did not even touch the lines it says are in error )<BR>
&nbsp;<BR>
But for sake of clearity, please bear with me as i post the&nbsp;Much of the config file as i would like to be corrected and assisted.<BR>
&nbsp;<BR>
&nbsp;<BR>
Thanks in anticipation<BR>
&nbsp;<BR>
&nbsp;<BR>
Anthony.&nbsp;&nbsp;<BR>
&nbsp;<BR>
- - - - - - - - - - - - - - - - - - <BR>
&nbsp;<BR>
#!KAMAILIO<BR>
#<BR>
#!define WITH_MYSQL<BR>#!define WITH_AUTH<BR>#!define WITH_USRLOCDB<BR>
#<BR>
# $Id$<BR>
#<BR>
# Kamailio (OpenSER) SIP Server v3.0&nbsp;- basic configuration script<BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - web: <A href="http://www.kamailio.org">http://www.kamailio.org</A><BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - git: <A href="http://sip-router.org">http://sip-router.org</A><BR><BR>
#<BR>
# Direct your questions about this file to: &lt;<A href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</A>&gt;<BR>
#<BR>
# Refer to the Core CookBook at <A href="http://www.kamailio.org/dokuwiki/doku.php">http://www.kamailio.org/dokuwiki/doku.php</A><BR># for an explanation of possible statements, functions and parameters.<BR>
#<BR>
# Several features can be enabled using '<BR>
#!define WITH_FEATURE' directives:<BR>
#<BR>
# *** To run in debug mode: <BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_DEBUG<BR>#<BR>
<STRONG><EM># *** To enable mysql:</EM></STRONG><BR>
<STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_MYSQL</EM></STRONG><BR>
<STRONG><EM>#</EM></STRONG><BR>
<STRONG><EM># *** To enable authentication execute:</EM></STRONG><BR>
<STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp; - enable mysql</EM></STRONG><BR>
&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_AUTH<BR>
&nbsp;&nbsp;&nbsp;&nbsp; - add users using 'kamctl'<BR>
#<BR>
# *** To enable persistent user location execute:<BR>&nbsp;&nbsp;&nbsp;&nbsp; - enable mysql<BR>
&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_USRLOCDB<BR>
#<BR>
# *** To enable presence server execute:<BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - enable mysql<BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_PRESENCE<BR>
#<BR>
# *** To enable nat traversal execute:<BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_NAT<BR>#&nbsp;&nbsp;&nbsp;&nbsp; - install RTPProxy: <A href="http://www.rtpproxy.org">http://www.rtpproxy.org</A><BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - start RTPProxy:<BR>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rtpproxy -l _your_public_ip_ -s udp:localhost:7722<BR>
#<BR>
# *** To enable PSTN gateway routing execute:<BR>#&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_PSTN<BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - set the value of pstn.gw_ip<BR>
#&nbsp;&nbsp;&nbsp;&nbsp; - check route[PSTN] for regexp routing condition<BR>
#<BR>
# *** To enhance accounting execute:<BR>
&nbsp;&nbsp;&nbsp;&nbsp; - enable mysql<BR>
&nbsp;&nbsp;&nbsp;&nbsp; - define WITH_ACCDB<BR><BR>
&nbsp;&nbsp;&nbsp;&nbsp; - add following columns to database<BR>
!ifdef ACCDB_COMMENT<BR>
&nbsp; ALTER TABLE acc ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';<BR>
&nbsp; ALTER TABLE acc ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';<BR>&nbsp; <BR>
&nbsp; ALTER TABLE acc ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';<BR>
&nbsp; ALTER TABLE acc ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';<BR>
&nbsp; ALTER TABLE acc ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';<BR>&nbsp;&nbsp; <BR>
&nbsp; ALTER TABLE missed_calls ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';<BR>
&nbsp; ALTER TABLE missed_calls ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';<BR>
&nbsp; ALTER TABLE missed_calls ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';<BR>&nbsp; <BR>
&nbsp; ALTER TABLE missed_calls ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';<BR>
&nbsp; ALTER TABLE missed_calls ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';<BR>
!endif<BR>
&nbsp;<BR>
&nbsp;<BR>
####### Global Parameters #########<BR><BR>
&nbsp;<BR>
<STRONG>#!ifdef WITH_DEBUG</STRONG><BR>
<STRONG>debug=4</STRONG><BR>
<STRONG>log_stderror=yes</STRONG><BR>
<STRONG>#!elsedebug=2</STRONG><BR>
<STRONG>log_stderror=no</STRONG><BR>
<STRONG>#!endif</STRONG><BR>
<STRONG></STRONG>&nbsp;<BR>
<STRONG>memdbg=5</STRONG><BR>
<STRONG>memlog=5</STRONG><BR>
<STRONG></STRONG>&nbsp;<BR>
<STRONG>log_facility=LOG_LOCAL0</STRONG><BR>
<STRONG></STRONG>&nbsp;<BR>
<STRONG>fork=yes</STRONG><BR>
<STRONG>children=4</STRONG><BR>
<STRONG></STRONG>&nbsp;<BR>
<STRONG>/* uncomment the next line to disable TCP (default on) */</STRONG><BR>
<BR><STRONG>#disable_tcp=yes</STRONG><BR>
&nbsp;<BR>
/* uncomment the next line to disable the auto discovery of local aliases&nbsp;&nbsp; based on revers DNS on IPs (default on) <BR>
&nbsp;<BR>
*/#auto_aliases=no<BR>
&nbsp;<BR>
port=5060<BR>
&nbsp;<BR>
/* uncomment and configure the following line if you want Kamailio to&nbsp;<BR>
&nbsp;<BR>
bind on a specific interface/port/proto (default bind on all available) */<BR>
#listen=udp:10.0.0.10:5060<BR>
&nbsp;<BR>
&nbsp;<BR>
####### Custom Parameters ######### <BR>
&nbsp;<BR>
# These parameters can be modified runtime via RPC interface<BR># - see the documentation of 'cfg_rpc' module.<BR>
#<BR>
# Format: group.id = value 'desc' description<BR>
# Access: $sel(cfg_get.group.id) or @cfg_get.group.id<BR><BR>
#<BR>
&nbsp;<BR>
#!ifdef WITH_PSTN<BR>
# PSTN GW Routing<BR>
#<BR>
# - pstn.gw_ip: valid IP or hostname as string value, example:<BR>
# pstn.gw_ip = "10.0.0.101" desc "My PSTN GW Address"<BR>
#<BR>
# - by default is empty to avoid misrouting<BR><BR>
pstn.gw_ip = "" desc "PSTN GW Address"<BR>
#!endif<BR>
&nbsp;<BR>
####### Modules Section ########<BR>
&nbsp;<BR>
#set module path<BR>
mpath="/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/"<BR><BR>
&nbsp;<BR>
/* uncomment next line for MySQL DB support */<BR>
!ifdef WITH_MYSQL<BR>
loadmodule "db_mysql.so"<BR>
#!endif<BR>
loadmodule "mi_fifo.so"<BR>
loadmodule "kex.so"<BR>
loadmodule "tm.so"<BR><BR>
loadmodule "tmx.so"<BR>
loadmodule "sl.so"<BR>
loadmodule "rr.so"<BR>
loadmodule "pv.so"<BR>
loadmodule "maxfwd.so"<BR>
loadmodule "usrloc.so"<BR>
loadmodule "registrar.so"<BR><BR>
loadmodule "textops.so"<BR>
loadmodule "uri_db.so"<BR>
loadmodule "siputils.so"<BR>
loadmodule "xlog.so"<BR>
loadmodule "sanity.so"<BR>
loadmodule "ctl.so"<BR>
loadmodule "mi_rpc.so"<BR><BR>
loadmodule "acc.so"<BR>
#!ifdef WITH_AUTH<BR>
loadmodule "auth.so"<BR>
loadmodule "auth_db.so"<BR>
#!endif<BR>
&nbsp;<BR>
/* uncomment next line for aliases support<BR>
&nbsp;&nbsp; NOTE: a DB (like db_mysql) module must be also loaded */<BR><BR>
#loadmodule "alias_db.so"<BR>
&nbsp;<BR>
/* uncomment next line for multi-domain support<BR>
&nbsp;&nbsp; NOTE: a DB (like db_mysql) module must be also loaded<BR>
&nbsp;&nbsp; NOTE: be sure and enable multi-domain support in all used modules<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (see "multi-module params" section ) */<BR>
#loadmodule "domain.so"<BR>
#!ifdef WITH_PRESENCE<BR>
loadmodule "presence.so"<BR>
loadmodule "presence_xml.so"<BR>
#!endif<BR>                                               </body>
</html>