Hi,
 
I made an attempt at installing kamailio-3.0.3 in a box yesterday and ran into a config file error on testing the installation.
 
0(3232): <core> [cfg.y:3333] parse error in config file /usr/local/etc/kamailio/kamailio.cfg  line 24, column 6 : synthax error
0(3232): <core> [cfg.y:3333] parse error in config file /usr/local/etc/kamailio/kamailio.cfg  line 74, column 6 : unkown config variable
0(3232): <core> [cfg.y:3333] parse error in config file /usr/local/etc/kamailio/kamailio.cfg  line 74, column 7 :
 
 
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 )
 
But for sake of clearity, please bear with me as i post the Much of the config file as i would like to be corrected and assisted.
 
 
Thanks in anticipation
 
 
Anthony.  
 
- - - - - - - - - - - - - - - - - -
 
#!KAMAILIO
#
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#
# $Id$
#
# Kamailio (OpenSER) SIP Server v3.0 - basic configuration script
#     - web: http://www.kamailio.org
#     - git: http://sip-router.org

#
# Direct your questions about this file to: <users@lists.kamailio.org>
#
# Refer to the Core CookBook at http://www.kamailio.org/dokuwiki/doku.php
# for an explanation of possible statements, functions and parameters.
#
# Several features can be enabled using '
#!define WITH_FEATURE' directives:
#
# *** To run in debug mode:
#     - define WITH_DEBUG
#
# *** To enable mysql:
      - define WITH_MYSQL
#
# *** To enable authentication execute:
     - enable mysql
     - define WITH_AUTH
     - add users using 'kamctl'
#
# *** To enable persistent user location execute:
     - enable mysql
     - define WITH_USRLOCDB
#
# *** To enable presence server execute:
#     - enable mysql
#     - define WITH_PRESENCE
#
# *** To enable nat traversal execute:
#     - define WITH_NAT
#     - install RTPProxy: http://www.rtpproxy.org
#     - start RTPProxy:
#        rtpproxy -l _your_public_ip_ -s udp:localhost:7722
#
# *** To enable PSTN gateway routing execute:
#     - define WITH_PSTN
#     - set the value of pstn.gw_ip
#     - check route[PSTN] for regexp routing condition
#
# *** To enhance accounting execute:
     - enable mysql
     - define WITH_ACCDB

     - add following columns to database
!ifdef ACCDB_COMMENT
  ALTER TABLE acc ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';
 
  ALTER TABLE acc ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE acc ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';
  
  ALTER TABLE missed_calls ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
 
  ALTER TABLE missed_calls ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
  ALTER TABLE missed_calls ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';
!endif
 
 
####### Global Parameters #########

 
#!ifdef WITH_DEBUG
debug=4
log_stderror=yes
#!elsedebug=2
log_stderror=no
#!endif
 
memdbg=5
memlog=5
 
log_facility=LOG_LOCAL0
 
fork=yes
children=4
 
/* uncomment the next line to disable TCP (default on) */

#disable_tcp=yes
 
/* uncomment the next line to disable the auto discovery of local aliases   based on revers DNS on IPs (default on)
 
*/#auto_aliases=no
 
port=5060
 
/* uncomment and configure the following line if you want Kamailio to 
 
bind on a specific interface/port/proto (default bind on all available) */
#listen=udp:10.0.0.10:5060
 
 
####### Custom Parameters #########
 
# These parameters can be modified runtime via RPC interface
# - see the documentation of 'cfg_rpc' module.
#
# Format: group.id = value 'desc' description
# Access: $sel(cfg_get.group.id) or @cfg_get.group.id

#
 
#!ifdef WITH_PSTN
# PSTN GW Routing
#
# - pstn.gw_ip: valid IP or hostname as string value, example:
# pstn.gw_ip = "10.0.0.101" desc "My PSTN GW Address"
#
# - by default is empty to avoid misrouting

pstn.gw_ip = "" desc "PSTN GW Address"
#!endif
 
####### Modules Section ########
 
#set module path
mpath="/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/"

 
/* uncomment next line for MySQL DB support */
!ifdef WITH_MYSQL
loadmodule "db_mysql.so"
#!endif
loadmodule "mi_fifo.so"
loadmodule "kex.so"
loadmodule "tm.so"

loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"

loadmodule "textops.so"
loadmodule "uri_db.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "ctl.so"
loadmodule "mi_rpc.so"

loadmodule "acc.so"
#!ifdef WITH_AUTH
loadmodule "auth.so"
loadmodule "auth_db.so"
#!endif
 
/* uncomment next line for aliases support
   NOTE: a DB (like db_mysql) module must be also loaded */

#loadmodule "alias_db.so"
 
/* uncomment next line for multi-domain support
   NOTE: a DB (like db_mysql) module must be also loaded
   NOTE: be sure and enable multi-domain support in all used modules
         (see "multi-module params" section ) */
#loadmodule "domain.so"
#!ifdef WITH_PRESENCE
loadmodule "presence.so"
loadmodule "presence_xml.so"
#!endif