Kamailio does not start

3,024 views
Skip to first unread message

Surya

unread,
Mar 19, 2017, 2:19:40 PM3/19/17
to 2600hz-users
I'm using stable but kamailio is not running, its been two days im try to set it up, any suggestion will be appreciated: 

Here is the error and logs:

status kazoo-kamailio
● kazoo-kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server Configured for Kazoo
   Loaded: loaded (/usr/lib/systemd/system/kazoo-kamailio.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2017-03-19 17:38:40 UTC; 2s ago
  Process: 9643 ExecStop=/usr/sbin/kazoo-kamailio stop (code=exited, status=127)
  Process: 9629 ExecStart=/usr/sbin/kazoo-kamailio start (code=exited, status=255)
  Process: 9620 ExecStartPre=/usr/sbin/kazoo-kamailio prepare (code=exited, status=0/SUCCESS)
 Main PID: 9629 (code=exited, status=255)

Mar 19 17:38:40 ip-xxxxxxxx kamailio[9629]: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.c...dmodule?
Mar 19 17:38:40 ip-xxxxxxxx kamailio[9629]: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 17:38:40 ip-xxxxxxxx kamailio[9629]: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.c...dmodule?
Mar 19 17:38:40 ip-xxxxxxxx kamailio[9629]: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 17:38:40 ip-xxxxxxxx kamailio[9629]: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.c...dmodule?
Mar 19 17:38:40 ip-xxxxxxxx systemd[1]: kazoo-kamailio.service: main process exited, code=exited, status=255/n/a
Mar 19 17:38:40 ip-xxxxxxxx kazoo-kamailio[9643]: /usr/sbin/kazoo-kamailio: line 59: killall: command not found
Mar 19 17:38:40 ip-xxxxxxxx systemd[1]: kazoo-kamailio.service: control process exited, code=exited status=127
Mar 19 17:38:40 ip-xxxxxxxx systemd[1]: Unit kazoo-kamailio.service entered failed state.
Mar 19 17:38:40 ip-xxxxxxxx systemd[1]: kazoo-kamailio.service failed.
Hint: Some lines were ellipsized, use -l to show in full.


[root@ip-xxxxxxxx run]# kamctl fifo ds_reload
which: no gdb in (/sbin:/bin:/usr/sbin:/usr/bin:/)
ERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_fifo
ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo")' in your config
ERROR: and also have loaded the mi_fifo module.

[root@ip-xxxxxxxx run]# kazoo-kamailio status
which: no gdb in (/sbin:/bin:/usr/sbin:/usr/bin:/)
ERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_fifo
ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo")' in your config
ERROR: and also have loaded the mi_fifo module.
[root@xxxxxxxxrun]# kamctl stats
which: no gdb in (/sbin:/bin:/usr/sbin:/usr/bin:/)
ERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_fifo
ERROR: Make sure you have the line 'modparam("mi_fifo", "fifo_name", "/var/run/kamailio/kamailio_fifo")' in your config
ERROR: and also have loaded the mi_fifo module.


/var/log/kamailio/kamailio.log :

Mar 19 15:13:15 aio kamailio: WARNING: <core> [cfg.y:3348]: warn_at(): warning in config file /etc/kazoo/kamailio/default.cfg, line 66, column 12: raw socket support not compiled in
Mar 19 15:13:15 aio kamailio: ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <binrpc_buffer_size> of type <2> not found in module <ctl>
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/default.cfg, line 104, column 43: Can't set module parameter
Mar 19 15:13:15 aio kamailio: ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <default_connection> of type <1> not found in module <db_text>
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/default.cfg, line 175, column 57: Can't set module parameter
Mar 19 15:13:15 aio kamailio: WARNING: <core> [cfg.y:3348]: warn_at(): warning in config file /etc/kazoo/kamailio/registrar-role.cfg, line 256, column 24: non-int expression (you might want to use casts)
Mar 19 15:13:15 aio kamailio: ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <startup_mode> of type <2> not found in module <presence>
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 36, column 39: Can't set module parameter
Mar 19 15:13:15 aio kamailio: ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <force_delete> of type <2> not found in module <presence>
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 37, column 39: Can't set module parameter
Mar 19 15:13:15 aio kamailio: ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <cseq_offset> of type <2> not found in module <presence>
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 39, column 38: Can't set module parameter
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 186, column 60: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command kazoo_pua_publish_dialoginfo (params 1)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 188, column 40: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 195, column 62: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command kazoo_pua_publish_presence (params 1)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 197, column 38: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 208, column 69: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command kazoo_pua_publish_mwi (params 1)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 210, column 33: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 220, column 62: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command kazoo_pua_publish_presence (params 1)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 222, column 38: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 235, column 65: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 242, column 58: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Mar 19 15:13:15 aio kamailio: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.cfg, line 249, column 56: unknown command, missing loadmodule?
Mar 19 15:13:15 aio kamailio: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized

/var/log/messages
Mar 19 17:38:40 aio systemd: Starting Kamailio (OpenSER) - the Open Source SIP Server Configured for Kazoo...
Mar 19 17:38:40 aio systemd: Started Kamailio (OpenSER) - the Open Source SIP Server Configured for Kazoo.
Mar 19 17:38:40 aio kazoo-kamailio: No errors found in /etc/kazoo/kamailio/kamailio.cfg
Mar 19 17:38:40 aio kazoo-kamailio: ERROR: bad config file (16 errors)
Mar 19 17:38:40 aio kazoo-kamailio: loading modules under config path: /usr/lib64/kamailio/modules/:/usr/lib/x86_64-linux-gnu/kamailio/modules/
Mar 19 17:38:40 aio systemd: kazoo-kamailio.service: main process exited, code=exited, status=255/n/a
Mar 19 17:38:40 aio kazoo-kamailio: /usr/sbin/kazoo-kamailio: line 59: killall: command not found
Mar 19 17:38:40 aio systemd: kazoo-kamailio.service: control process exited, code=exited status=127
Mar 19 17:38:40 aio systemd: Unit kazoo-kamailio.service entered failed state.
Mar 19 17:38:40 aio systemd: kazoo-kamailio.service failed.

nedco

unread,
Mar 19, 2017, 3:09:54 PM3/19/17
to 2600hz-users
Did you make changes to the Kamailio.cfg file? 

Luis Azedo

unread,
Mar 19, 2017, 5:05:15 PM3/19/17
to 2600hz...@googlegroups.com
stable is 4.0.

if you want to run 4.1 , you'll need kamailio master for now.


--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Surya

unread,
Mar 19, 2017, 5:06:51 PM3/19/17
to 2600hz-users
yes updated the mpath

fred

unread,
Mar 20, 2017, 3:49:23 PM3/20/17
to 2600hz-users
If this is expermental RPM branch then it is v4.1 which will not work with any released version of Kamailio.  Downgrade your kazoo-configs-kamailio RPM to 2017.02-07.  Otherwise you have to compile Kamailio from master branch.

Arek Fryz

unread,
Mar 22, 2017, 6:22:52 PM3/22/17
to 2600hz...@googlegroups.com
Were you able to get BLF/presence to work with configs from 2017.02-07?

Also, newsletter mentions major BLF improvements in 4.1 and does that mean 4.1 will be released with new configs and new kamailio in order to see those improvements or old configs and kamailio applies to that too?





Regards,
Arek Fryz



REMAC ENTERPRISES, LTD.




----
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.

--

fred

unread,
Mar 23, 2017, 10:52:44 AM3/23/17
to 2600hz-users
Where is this newsletter you speak of?  Searched their site and couldn't find anything.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users...@googlegroups.com.

Arek Fryz

unread,
Mar 23, 2017, 11:26:03 AM3/23/17
to 2600hz...@googlegroups.com
I got it via email. It's weekly partner update. Not sure if it is available online. 

For me 4.1 with 2017.02-07 configs will start kamailio but BLF does not work. I tried kamailio from master branch and it started with newest 4.1 configs (with small adjustments) but was crashing in some cases when for example Zoiper was subscribing to presence. Yealink and Polycom were OK.




Regards,
Arek Fryz



REMAC ENTERPRISES, LTD.




----
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.

To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users+unsubscribe@googlegroups.com.

Ab Nazari

unread,
Apr 12, 2017, 5:21:36 AM4/12/17
to 2600hz-users
Hi all, 

I am also facing the same issue. I followed the single server installation guide and installed all components from repository (2600hz-release-4.0-2.el7.centos.noarch.rpm). Everything worked fine except for the Kamailio. 

[root@ip-10-10-10-218 centos]# kamctl fifo ds_reload
which: no gdb in (/sbin:/bin:/usr/sbin:/usr/bin:/)
500 command 'ds_reload' not available

[root@ip-10-10-10-218 centos]# kazoo-kamailio status
which: no gdb in (/sbin:/bin:/usr/sbin:/usr/bin:/)
500 command 'ds_list' not available

[root@ip-10-10-10-218 centos]# kamctl stats
which: no gdb in (/sbin:/bin:/usr/sbin:/usr/bin:/)
core:bad_URIs_rcvd = 0
core:bad_msg_hdr = 0
core:drop_replies = 0
core:drop_requests = 0
core:err_replies = 0
...


I have changed the local.cfg properly. Am I missing something?

fred

unread,
Apr 12, 2017, 12:00:17 PM4/12/17
to 2600hz-users
Kamailio is broken in experimental for sure.  Make sure you have repo set to only install stable.  It's confusing because even though you are in stable folder you could still have repo set to experimental.  Maybe someone from 2600 can chime in as to why they do that.

A. Nazari

unread,
Apr 12, 2017, 10:15:18 PM4/12/17
to 2600hz...@googlegroups.com
Thanks Fred, 

You are right that I was using the experimental repo. I switched to stable and tried to install from scratch but still I have some issues. 

In stable repo you can't install Kamailio at the moment because there is a version conflict. To get around it and switched the experimental and installed Kamailio and then switched back to stable. Now the output is: 

[root@aio centos]# systemctl status kazoo-kamailio
â— kazoo-kamailio.service - Kamailio (OpenSER) - the Open Source SIP Server Configured for Kazoo
   Loaded: loaded (/usr/lib/systemd/system/kazoo-kamailio.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2017-04-13 00:53:45 UTC; 48min ago
  Process: 1041 ExecStop=/usr/sbin/kazoo-kamailio stop (code=exited, status=127)
  Process: 808 ExecStart=/usr/sbin/kazoo-kamailio start (code=exited, status=255)
  Process: 765 ExecStartPre=/usr/sbin/kazoo-kamailio prepare (code=exited, status=0/SUCCESS)
 Main PID: 808 (code=exited, status=255)

Apr 13 00:53:45 aio.kavauc.com kamailio[808]: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.c...dmodule?
Apr 13 00:53:45 aio.kavauc.com kamailio[808]: ERROR: <core> [cfg.y:3231]: yyparse(): cfg. parser: failed to find command pres_has_subscribers (params 2)
Apr 13 00:53:45 aio.kavauc.com kazoo-kamailio[808]: ERROR: bad config file (16 errors)
Apr 13 00:53:45 aio.kavauc.com kamailio[808]: : <core> [cfg.y:3371]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/presence-role.c...dmodule?
Apr 13 00:53:45 aio.kavauc.com kamailio[808]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Apr 13 00:53:45 aio.kavauc.com systemd[1]: kazoo-kamailio.service: main process exited, code=exited, status=255/n/a
Apr 13 00:53:45 aio.kavauc.com kazoo-kamailio[1041]: /usr/sbin/kazoo-kamailio: line 59: killall: command not found
Apr 13 00:53:45 aio.kavauc.com systemd[1]: kazoo-kamailio.service: control process exited, code=exited status=127
Apr 13 00:53:45 aio.kavauc.com systemd[1]: Unit kazoo-kamailio.service entered failed state.
Apr 13 00:53:45 aio.kavauc.com systemd[1]: kazoo-kamailio.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

It's complaining about parsing errors in presence-role.c...dmodule. Kamailio can't run now and I don't know how to proceed. 





--
You received this message because you are subscribed to a topic in the Google Groups "2600hz-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/2600hz-users/IM63EnIOkAA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 2600hz-users+unsubscribe@googlegroups.com.

Luis Azedo

unread,
Apr 13, 2017, 5:35:45 AM4/13/17
to 2600hz...@googlegroups.com
you need kazoo-config 4.0


--
You received this message because you are subscribed to the Google Groups "2600hz-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages