On 28/05/2017, at 2:51 PM, sgy <nucsgy@163.com> wrote:

Hi anyone,

I can't start kamailio, Please help me 

Log:
1. ~# kamctl start
database engine 'MYSQL' loaded
Control engine 'RPCFIFO' loaded

INFO: Starting Kamailio : 

ERROR: PID file /var/run/kamailio/kamailio.pid does not exist -- Kamailio start failed

2. :~# kamailio -M 8 -E -e -dd

 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#24 #1/2: 3(3)/ (nil)
 0(1685) DEBUG: <core> [core/sr_module.c:694]: find_mod_export_record(): find_export_record: found <t_is_canceled> in module tm [/usr/local/lib64/kamailio/modules/tm.so]
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#2 #0/2: 3(3)/ 0x1
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#2 #1/2: 3(3)/ 0x1
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#16 #0/3: 22(16)/ 0x7f634f00f780
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#16 #1/3: 8(8)/ 0x7f634f00feb0
 0(1685) DEBUG: <core> [core/route_struct.c:129]: mk_action(): ACTION_#16 #2/3: 0(0)/ 0x7f6300000000
 0(1685) DEBUG: <core> [core/route.c:129]: route_add(): mapping routing block (0xafc160)[MANAGE_FAILURE] to 1
ERROR: bad config file (1 errors)
 0(1685) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized

Hi,

Can you post the full log? In my experience, Kamailio reports errors as they occur, and then at the end of parsing reports how many - you’ve got the “how many” but not what the errors were.

--
Nathan Ward