Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config errors when launching P-CSCF #52

Open
nishant412 opened this issue Oct 15, 2024 · 3 comments
Open

Config errors when launching P-CSCF #52

nishant412 opened this issue Oct 15, 2024 · 3 comments

Comments

@nishant412
Copy link

I have been following the instructions at https://ryantheelder.github.io/blog/2023/VoLTE/ to setup Kamailio + Open5GS and using the config files from this repo. When I get to the step of launching P-CSCF I run into the following config related errors.

root@open5gs-kamailio:~# kamailio -f /etc/kamailio_pcscf/kamailio_pcscf.cfg -P /kamailio_pcscf.pid -DD -E -e
loading modules under config path: /usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/:/usr/lib/x86_64-linux-gnu/kamailio/modules/:/usr/local/lib64/kamailio/modules
0(10128) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <delete_delay> of type <2:int> not found in module <ims_registrar_pcscf>
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 399, column 51: Can't set module parameter
0(10128) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <ipsec_preferred_ealg> of type <1:string> not found in module <ims_ipsec_pcscf>
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 417, column 59: Can't set module parameter
0(10128) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <recv_mode> of type <2:int> not found in module <ims_qos>
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 435, column 35: Can't set module parameter
0(10128) ERROR: [core/modparam.c:164]: set_mod_param_regex(): parameter <dialog_direction> of type <2:int> not found in module <ims_qos>
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/kamailio_pcscf.cfg, line 436, column 42: Can't set module parameter
0(10128) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
0(10128) ERROR: [core/cfg.y:3399]: yyparse(): cfg. parser: failed to find command ipsec_forward (params 2)
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/route/register.cfg, line 260, column 42: unknown command, missing loadmodule?

0(10128) ERROR: [core/cfg.y:3399]: yyparse(): cfg. parser: failed to find command ipsec_create (params 2)
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/route/register.cfg, line 264, column 77: unknown command, missing loadmodule?

0(10128) ERROR: [core/cfg.y:3399]: yyparse(): cfg. parser: failed to find command ipsec_forward (params 2)
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/route/mo.cfg, line 114, column 31: unknown command, missing loadmodule?

0(10128) ERROR: [core/cfg.y:3399]: yyparse(): cfg. parser: failed to find command ipsec_forward (params 2)
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/route/mo.cfg, line 180, column 33: unknown command, missing loadmodule?

0(10128) ERROR: [core/cfg.y:3399]: yyparse(): cfg. parser: failed to find command ipsec_forward (params 2)
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/route/mt.cfg, line 11, column 34: unknown command, missing loadmodule?

0(10128) ERROR: [core/cfg.y:3399]: yyparse(): cfg. parser: failed to find command ipsec_forward (params 2)
0(10128) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio_pcscf/route/mt.cfg, line 99, column 42: unknown command, missing loadmodule?

ERROR: bad config file (10 errors)
0(10128) WARNING: [core/mem/q_malloc.c:487]: qm_free(): WARNING: free(0) called from cdp_avp: cdp_avp_mod.c: cdp_avp_destroy(226)
0(10128) INFO: cdp [cdp_mod.c:255]: cdp_exit(): CDiameterPeer child stopping ...
0(10128) INFO: cdp [cdp_mod.c:257]: cdp_exit(): ... CDiameterPeer child stopped
0(10128) ERROR: ims_ipsec_pcscf [ipsec.c:582]: clean_sa(): Error sending delete SAs command via netlink socket: No data available
0(10128) WARNING: ims_ipsec_pcscf [cmd.c:1170]: ipsec_cleanall(): Error cleaning IPSec Security associations during startup.
0(10128) ERROR: ims_ipsec_pcscf [ipsec.c:624]: clean_policy(): Error sending delete policies command via netlink socket: No data available
0(10128) WARNING: ims_ipsec_pcscf [cmd.c:1174]: ipsec_cleanall(): Error cleaning IPSec Policies during startup.
0(10128) ERROR: ims_ipsec_pcscf [ims_ipsec_pcscf_mod.c:309]: mod_destroy(): Error destroying spi generator
0(10128) ERROR: ims_ipsec_pcscf [ims_ipsec_pcscf_mod.c:313]: mod_destroy(): Error destroying port generator

Any hints to what may be wrong would be really helpful

Thanks in advance

@herlesupreeth
Copy link
Owner

Can you let me know which version of kamailio you are using and the branch from which you took the kamailio configuration files?

@nishant412
Copy link
Author

I am using kamailio version tag 5.3 (from your kamailio source repo) and the config files from the default branch (I guess that is master)

@herlesupreeth
Copy link
Owner

If you are using kamailio 5.3 you need to use the configuration files from the branch 5.3 in this repo. Hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants