Dear Expert Kamailio,
I use this tutorial kamctl to make kamailio and other sip server communicated https://manpages.ubuntu.com/manpages/xenial/man8/kamctl.8.html
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage..
Since i always found error/failure during execute some command from the link, here captured:
(1). # kamctl cr dump -e \E[37;31mERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_rpc.fifo -e \E[37;31mERROR: Make sure you have loaded the jsonrpcs module and set FIFO transport parameters
(2). # kamctl lcr show_gws -e \E[37;31mERROR: command disabled
(3). # kamctl lcr reload -e \E[37;31mERROR: command disabled
(4). # kamctl ping 192.168.31.50 { "jsonrpc": "2.0", "error": { "code": 400, "message": "Invalid request uri "192.168.31.50"" }, "id": 76608 }
(5). # kamctl cr reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 76659 }
Warm Regards,
On 4/1/22 06:48, bayu p wrote:
[snip]
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage.. [...]
It looks like there are some aspects of the commands you're hitting incorrectly as well as perhaps not having the modules loaded or configured.
You can also try with kamcmd... such as kamcmd core.uptime or kamcmd core.info
Fred Posner | palner.com Matrix: https://matrix.to/#/@fred:matrix.lod.com o: +1 (212) 937-7844
Hi,
as Fred said. kamcmd help show you command that are currently possible based on your kamailio.cfg.
Fred Posner fred@palner.com schrieb am Fr., 1. Apr. 2022, 14:50:
On 4/1/22 06:48, bayu p wrote:
[snip]
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage.. [...]
It looks like there are some aspects of the commands you're hitting incorrectly as well as perhaps not having the modules loaded or configured.
You can also try with kamcmd... such as kamcmd core.uptime or kamcmd core.info
Fred Posner | palner.com Matrix: https://matrix.to/#/@fred:matrix.lod.com o: +1 (212) 937-7844
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Dear Fred,
I already add module lcr, but found error when searching pvar "ddn" inside source code core/pvapi.c at line 923, as shown captured below :
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/pvapi.c:923]: pv_parse_spec2(): error searching pvar "ddn"
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/pvapi.c:1126]: pv_parse_spec2(): wrong char [n/110] in [$ddn] at [3 (0)]
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: xlog [xlog.c:511]: xdbg_fixup_helper(): wrong format[Domain of destination: $ddn]
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/route.c:1166]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:901
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/route.c:1166]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:903
Apr 6 10:26:50 kamal /usr/sbin/kamailio[180954]: ERROR: <core> [core/route.c:1166]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:918
The question are, how to define correct "INVITE" methode inside route[LCR] which I already defined inside kamailio.cfg:
route[LCR] {
if (status=="200")
{
xlog("LCR: Inside the LCR routen");
}
if(method=="INVITE")
{
xlog("We got an invite");
if(!load_gws(1, $rU, $var(caller_uri))) {
xlog("Couldn't load gateways");
sl_send_reply("500", "Server Internal Error - Cannot load gateways");
exit;
} else {
xlog("GW Selected '$avp(i:709)'n");
xlog("Domain of destination: $ddn");
xlog("To URI: $tun");
}
if(!next_gw()) {
xlog("Couldn't proceed to next gateway");
sl_send_reply("503", "Service not available, no gateways found");
exit;
} else {
xlog("Calling the first matched gatewayn");
xlog("ruri_user_avp: '$avp(i:500)'n");
xlog("To URI after next_gw: $tun");
xlog("Request URI: $rUn");
}
}
}
Warm Regards,
Pada tanggal Jum, 1 Apr 2022 pukul 19.51 Fred Posner fred@palner.com menulis:
On 4/1/22 06:48, bayu p wrote:
[snip]
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage.. [...]
It looks like there are some aspects of the commands you're hitting incorrectly as well as perhaps not having the modules loaded or configured.
You can also try with kamcmd... such as kamcmd core.uptime or kamcmd core.info
Fred Posner | palner.com Matrix: https://matrix.to/#/@fred:matrix.lod.com o: +1 (212) 937-7844
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
I tried to loading Carrierroute module and lcr module but I can not found the module from apt search kamailio for carrierroute and lcr.
So, how should i find that module?
On Fri, Apr 1, 2022, 17:48 bayu p bayupmail@gmail.com wrote:
Dear Expert Kamailio,
I use this tutorial kamctl to make kamailio and other sip server communicated https://manpages.ubuntu.com/manpages/xenial/man8/kamctl.8.html
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage..
Since i always found error/failure during execute some command from the link, here captured:
(1). # kamctl cr dump -e \E[37;31mERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_rpc.fifo -e \E[37;31mERROR: Make sure you have loaded the jsonrpcs module and set FIFO transport parameters
(2). # kamctl lcr show_gws -e \E[37;31mERROR: command disabled
(3). # kamctl lcr reload -e \E[37;31mERROR: command disabled
(4). # kamctl ping 192.168.31.50 { "jsonrpc": "2.0", "error": { "code": 400, "message": "Invalid request uri "192.168.31.50"" }, "id": 76608 }
(5). # kamctl cr reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 76659 }
Warm Regards,
Hello,
you have to tell what kamailio version you are running to know what commands are available. Some for lcr are disabled on purpose, nobody updated them, as it is written in the output.
Cheers, Daniel
On 01.04.22 12:48, bayu p wrote:
Dear Expert Kamailio,
I use this tutorial kamctl to make kamailio and other sip server communicated https://manpages.ubuntu.com/manpages/xenial/man8/kamctl.8.html
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage..
Since i always found error/failure during execute some command from the link, here captured:
(1). # kamctl cr dump -e \E[37;31mERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_rpc.fifo -e \E[37;31mERROR: Make sure you have loaded the jsonrpcs module and set FIFO transport parameters
(2). # kamctl lcr show_gws -e \E[37;31mERROR: command disabled
(3). # kamctl lcr reload -e \E[37;31mERROR: command disabled
(4). # kamctl ping 192.168.31.50 { "jsonrpc": "2.0", "error": { "code": 400, "message": "Invalid request uri "192.168.31.50"" }, "id": 76608 }
(5). # kamctl cr reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 76659 }
Warm Regards,
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
I got by default installation kamailio version are 5.3.2.
If some kamctl command are disabled, what should I used to make my kamailio communicate with other sip server as sip proxy kamailio ?
What should i did to use "least cost routing" modules, such as lcr or carrierroute modules ?
On Mon, Apr 4, 2022, 22:00 Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
you have to tell what kamailio version you are running to know what commands are available. Some for lcr are disabled on purpose, nobody updated them, as it is written in the output.
Cheers, Daniel On 01.04.22 12:48, bayu p wrote:
Dear Expert Kamailio,
I use this tutorial kamctl to make kamailio and other sip server communicated https://manpages.ubuntu.com/manpages/xenial/man8/kamctl.8.html
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage..
Since i always found error/failure during execute some command from the link, here captured:
(1). # kamctl cr dump -e \E[37;31mERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_rpc.fifo -e \E[37;31mERROR: Make sure you have loaded the jsonrpcs module and set FIFO transport parameters
(2). # kamctl lcr show_gws -e \E[37;31mERROR: command disabled
(3). # kamctl lcr reload -e \E[37;31mERROR: command disabled
(4). # kamctl ping 192.168.31.50 { "jsonrpc": "2.0", "error": { "code": 400, "message": "Invalid request uri "192.168.31.50"" }, "id": 76608 }
(5). # kamctl cr reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 76659 }
Warm Regards,
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
-- Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Online March 28-31, 2022 (Europe Timezone)
kamctl has nothing to do with SIP routing done by kamailio, is just a admin tool for kamailio, but kamailio does not depend on it for SIP routing.
You can also use kamcli or siremis as alternative admin tools for kamailio.
For using lcr or any other module, load it in the kamailio.cfg and then set its parameters and use its functions in the routing blocks. The readme of each module offer the reference tutorial, e.g.:
* https://www.kamailio.org/docs/modules/stable/modules/lcr.html
Cheers, Daniel
On 04.04.22 19:31, bayu p wrote:
I got by default installation kamailio version are 5.3.2.
If some kamctl command are disabled, what should I used to make my kamailio communicate with other sip server as sip proxy kamailio ?
What should i did to use "least cost routing" modules, such as lcr or carrierroute modules ?
On Mon, Apr 4, 2022, 22:00 Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello, you have to tell what kamailio version you are running to know what commands are available. Some for lcr are disabled on purpose, nobody updated them, as it is written in the output. Cheers, Daniel On 01.04.22 12:48, bayu p wrote:
Dear Expert Kamailio, I use this tutorial kamctl to make kamailio and other sip server communicated https://manpages.ubuntu.com/manpages/xenial/man8/kamctl.8.html but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage.. Since i always found error/failure during execute some command from the link, here captured: (1). # kamctl cr dump -e \E[37;31mERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_rpc.fifo -e \E[37;31mERROR: Make sure you have loaded the jsonrpcs module and set FIFO transport parameters (2). # kamctl lcr show_gws -e \E[37;31mERROR: command disabled (3). # kamctl lcr reload -e \E[37;31mERROR: command disabled (4). # kamctl ping 192.168.31.50 { "jsonrpc": "2.0", "error": { "code": 400, "message": "Invalid request uri \"192.168.31.50\"" }, "id": 76608 } (5). # kamctl cr reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 76659 } Warm Regards, __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Kamailio Advanced Training - Online March 28-31, 2022 (Europe Timezone) * https://www.asipto.com/sw/kamailio-advanced-training-online/
I load lcr module by add some line on kamilio.cfg to make "kamctl lcr reload" work. so , i add line loadmodule, modparam, define and declare route(LCR), add database info lcr gateway
when i restart kamailio, it shown failure starting kamailio, here capture :
Apr 5 10:06:14 kamal /usr/sbin/kamailio[175306]: ERROR: <core> [db.c:204]: db_bind_mod(): Module db_mysql not found. Missing loadmodule? Apr 5 10:06:14 kamal /usr/sbin/kamailio[175306]: ERROR: lcr [lcr_mod.c:398]: lcr_db_bind(): unable to bind to the database module Apr 5 10:06:14 kamal /usr/sbin/kamailio[175306]: ERROR: lcr [lcr_mod.c:439]: mod_init(): no database module found Apr 5 10:06:14 kamal /usr/sbin/kamailio[175306]: ERROR: <core> [core/sr_module.c:849]: init_mod(): Error while initializing module lcr (/usr/lib/x86_64-linux-gnu/kamailio/modules/lcr.so)
Why this log shown missing module, kind of my lcr module not loaded correctly ? any else missing i did to completely load this module ?
Kind Regards,
Pada tanggal Sel, 5 Apr 2022 pukul 01.00 Daniel-Constantin Mierla < miconda@gmail.com> menulis:
kamctl has nothing to do with SIP routing done by kamailio, is just a admin tool for kamailio, but kamailio does not depend on it for SIP routing.
You can also use kamcli or siremis as alternative admin tools for kamailio.
For using lcr or any other module, load it in the kamailio.cfg and then set its parameters and use its functions in the routing blocks. The readme of each module offer the reference tutorial, e.g.:
Cheers, Daniel On 04.04.22 19:31, bayu p wrote:
I got by default installation kamailio version are 5.3.2.
If some kamctl command are disabled, what should I used to make my kamailio communicate with other sip server as sip proxy kamailio ?
What should i did to use "least cost routing" modules, such as lcr or carrierroute modules ?
On Mon, Apr 4, 2022, 22:00 Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
you have to tell what kamailio version you are running to know what commands are available. Some for lcr are disabled on purpose, nobody updated them, as it is written in the output.
Cheers, Daniel On 01.04.22 12:48, bayu p wrote:
Dear Expert Kamailio,
I use this tutorial kamctl to make kamailio and other sip server communicated https://manpages.ubuntu.com/manpages/xenial/man8/kamctl.8.html
but, i cannot found further tutorial how use kamctl. Could you please share, the detail/further tutorial and example of kamctl usage..
Since i always found error/failure during execute some command from the link, here captured:
(1). # kamctl cr dump -e \E[37;31mERROR: Error opening Kamailio's FIFO /var/run/kamailio/kamailio_rpc.fifo -e \E[37;31mERROR: Make sure you have loaded the jsonrpcs module and set FIFO transport parameters
(2). # kamctl lcr show_gws -e \E[37;31mERROR: command disabled
(3). # kamctl lcr reload -e \E[37;31mERROR: command disabled
(4). # kamctl ping 192.168.31.50 { "jsonrpc": "2.0", "error": { "code": 400, "message": "Invalid request uri "192.168.31.50"" }, "id": 76608 }
(5). # kamctl cr reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 76659 }
Warm Regards,
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
-- Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Online March 28-31, 2022 (Europe Timezone)
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - Online March 28-31, 2022 (Europe Timezone)
Dear Expert, I found failure/critical status after restart kamailio 5.3.2. Could you please to share correct step to install/loading lcr module ?
Previously, i did load lcr module in kamailio.cfg, found "error" db_bind_mod(): Module db_mysql not found. When changes lcr db_mysql inside kamailio.cfg file into DBURL, the error messages is transformed into as captured below :
Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:38 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Kind Regards,
Hello,
You have some syntax errors in your cfg file. Have a look to the mentioned lines in your kamailio.cfg (e.g. line 468).
Cheers,
Henning From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of bayu p Sent: Tuesday, April 5, 2022 11:04 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Dear Expert, I found failure/critical status after restart kamailio 5.3.2. Could you please to share correct step to install/loading lcr module ?
Previously, i did load lcr module in kamailio.cfg, found "error" db_bind_mod(): Module db_mysql not found. When changes lcr db_mysql inside kamailio.cfg file into DBURL, the error messages is transformed into as captured below :
Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:38 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Kind Regards,
Ok, I got that point about syntax error. I have compared the syntax with the other line format, but the result is "it is the same syntax".
It could be related with lcr module error, due to my previous loading of lcr module.
Pada tanggal Sel, 5 Apr 2022 pukul 16.24 Henning Westerholt hw@gilawa.com menulis:
Hello,
You have some syntax errors in your cfg file. Have a look to the mentioned lines in your kamailio.cfg (e.g. line 468).
Cheers,
Henning
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *bayu p *Sent:* Tuesday, April 5, 2022 11:04 AM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Dear Expert,
I found failure/critical status after restart kamailio 5.3.2.
Could you please to share correct step to install/loading lcr module ?
Previously, i did load lcr module in kamailio.cfg, found "error" db_bind_mod(): Module db_mysql not found. When changes lcr db_mysql inside kamailio.cfg file into DBURL, the error messages is transformed into as captured below :
Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:38 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Kind Regards,
Hello,
do you’ve installed the mysql module for kamailio with system package management tools?
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: bayu p bayupmail@gmail.com Sent: Tuesday, April 5, 2022 12:01 PM To: Henning Westerholt hw@gilawa.com Cc: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Ok, I got that point about syntax error. I have compared the syntax with the other line format, but the result is "it is the same syntax".
It could be related with lcr module error, due to my previous loading of lcr module.
Pada tanggal Sel, 5 Apr 2022 pukul 16.24 Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> menulis: Hello,
You have some syntax errors in your cfg file. Have a look to the mentioned lines in your kamailio.cfg (e.g. line 468).
Cheers,
Henning From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of bayu p Sent: Tuesday, April 5, 2022 11:04 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Dear Expert, I found failure/critical status after restart kamailio 5.3.2. Could you please to share correct step to install/loading lcr module ?
Previously, i did load lcr module in kamailio.cfg, found "error" db_bind_mod(): Module db_mysql not found. When changes lcr db_mysql inside kamailio.cfg file into DBURL, the error messages is transformed into as captured below :
Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:38 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Kind Regards,
What meaning of "system package management tools" ? since my kamailio installation process did install below packages:
user@kamal:/etc/kamailio# dpkg -l |grep -i kamailio kamailio 5.3.2-1build3 very fast, dynamic and configurable SIP server kamailio-mysql-modules:amd64 5.3.2-1build3 MySQL database connectivity module for Kamailio kamailio-outbound-modules:amd64 5.3.2-1build3 SIP Outbound module for the Kamailio SIP server kamailio-presence-modules:amd64 5.3.2-1build3 SIP presence modules for Kamailio kamailio-tls-modules:amd64 5.3.2-1build3 TLS support for the Kamailio SIP server (authentication, transport) kamailio-websocket-modules:amd64 5.3.2-1build3 WebSocket module for the Kamailio SIP server
Pada tanggal Sel, 5 Apr 2022 pukul 17.02 Henning Westerholt hw@gilawa.com menulis:
Hello,
do you’ve installed the mysql module for kamailio with system package management tools?
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
*From:* bayu p bayupmail@gmail.com *Sent:* Tuesday, April 5, 2022 12:01 PM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Ok, I got that point about syntax error.
I have compared the syntax with the other line format, but the result is "it is the same syntax".
It could be related with lcr module error, due to my previous loading of lcr module.
Pada tanggal Sel, 5 Apr 2022 pukul 16.24 Henning Westerholt hw@gilawa.com menulis:
Hello,
You have some syntax errors in your cfg file. Have a look to the mentioned lines in your kamailio.cfg (e.g. line 468).
Cheers,
Henning
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *bayu p *Sent:* Tuesday, April 5, 2022 11:04 AM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Dear Expert,
I found failure/critical status after restart kamailio 5.3.2.
Could you please to share correct step to install/loading lcr module ?
Previously, i did load lcr module in kamailio.cfg, found "error" db_bind_mod(): Module db_mysql not found. When changes lcr db_mysql inside kamailio.cfg file into DBURL, the error messages is transformed into as captured below :
Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:38 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Kind Regards,
Hello,
Ok, the module is installed. So, what is the line 468 from your cfg that produces the error?
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: bayu p bayupmail@gmail.com Sent: Tuesday, April 5, 2022 12:09 PM To: Henning Westerholt hw@gilawa.com Cc: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
What meaning of "system package management tools" ? since my kamailio installation process did install below packages: user@kamal:/etc/kamailio# dpkg -l |grep -i kamailio kamailio 5.3.2-1build3 very fast, dynamic and configurable SIP server kamailio-mysql-modules:amd64 5.3.2-1build3 MySQL database connectivity module for Kamailio kamailio-outbound-modules:amd64 5.3.2-1build3 SIP Outbound module for the Kamailio SIP server kamailio-presence-modules:amd64 5.3.2-1build3 SIP presence modules for Kamailio kamailio-tls-modules:amd64 5.3.2-1build3 TLS support for the Kamailio SIP server (authentication, transport) kamailio-websocket-modules:amd64 5.3.2-1build3 WebSocket module for the Kamailio SIP server
Pada tanggal Sel, 5 Apr 2022 pukul 17.02 Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> menulis: Hello,
do you’ve installed the mysql module for kamailio with system package management tools?
Cheers,
Henning
-- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.comhttps://gilawa.com/
From: bayu p <bayupmail@gmail.commailto:bayupmail@gmail.com> Sent: Tuesday, April 5, 2022 12:01 PM To: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Ok, I got that point about syntax error. I have compared the syntax with the other line format, but the result is "it is the same syntax".
It could be related with lcr module error, due to my previous loading of lcr module.
Pada tanggal Sel, 5 Apr 2022 pukul 16.24 Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> menulis: Hello,
You have some syntax errors in your cfg file. Have a look to the mentioned lines in your kamailio.cfg (e.g. line 468).
Cheers,
Henning From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of bayu p Sent: Tuesday, April 5, 2022 11:04 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Dear Expert, I found failure/critical status after restart kamailio 5.3.2. Could you please to share correct step to install/loading lcr module ?
Previously, i did load lcr module in kamailio.cfg, found "error" db_bind_mod(): Module db_mysql not found. When changes lcr db_mysql inside kamailio.cfg file into DBURL, the error messages is transformed into as captured below :
Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:38 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Kind Regards,
line 468 are "modparam("lcr", "db_url", DBURL)" it is replacement from previous line "modparam("lcr", "db_url", "mysql://kamailioro:kamailioro@localhost/kamailio")"
here capture on kamailio.cfg file by "DBURL" filtered.
kamailio# cat -n kamailio.cfg |grep -i DBURL 122 #!ifndef DBURL 123 #!define DBURL "mysql://kamailio:kamailiorw@localhost/kamailio" 365 modparam("acc", "db_url", DBURL) 374 modparam("usrloc", "db_url", DBURL) 381 modparam("auth_db", "db_url", DBURL) 389 modparam("permissions", "db_url", DBURL) 397 modparam("alias_db", "db_url", DBURL) 403 modparam("speeddial", "db_url", DBURL) 409 modparam("domain", "db_url", DBURL) 416 modparam("presence", "db_url", DBURL) 419 modparam("presence_xml", "db_url", DBURL) 468 modparam("lcr", "db_url", DBURL)
Pada tanggal Sel, 5 Apr 2022 pukul 17.28 Henning Westerholt hw@gilawa.com menulis:
Hello,
Ok, the module is installed. So, what is the line 468 from your cfg that produces the error?
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
*From:* bayu p bayupmail@gmail.com *Sent:* Tuesday, April 5, 2022 12:09 PM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
What meaning of "system package management tools" ?
since my kamailio installation process did install below packages:
user@kamal:/etc/kamailio# dpkg -l |grep -i kamailio kamailio 5.3.2-1build3 very fast, dynamic and configurable SIP server kamailio-mysql-modules:amd64 5.3.2-1build3 MySQL database connectivity module for Kamailio kamailio-outbound-modules:amd64 5.3.2-1build3 SIP Outbound module for the Kamailio SIP server kamailio-presence-modules:amd64 5.3.2-1build3 SIP presence modules for Kamailio kamailio-tls-modules:amd64 5.3.2-1build3 TLS support for the Kamailio SIP server (authentication, transport) kamailio-websocket-modules:amd64 5.3.2-1build3 WebSocket module for the Kamailio SIP server
Pada tanggal Sel, 5 Apr 2022 pukul 17.02 Henning Westerholt hw@gilawa.com menulis:
Hello,
do you’ve installed the mysql module for kamailio with system package management tools?
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
*From:* bayu p bayupmail@gmail.com *Sent:* Tuesday, April 5, 2022 12:01 PM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re: [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Ok, I got that point about syntax error.
I have compared the syntax with the other line format, but the result is "it is the same syntax".
It could be related with lcr module error, due to my previous loading of lcr module.
Pada tanggal Sel, 5 Apr 2022 pukul 16.24 Henning Westerholt hw@gilawa.com menulis:
Hello,
You have some syntax errors in your cfg file. Have a look to the mentioned lines in your kamailio.cfg (e.g. line 468).
Cheers,
Henning
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *bayu p *Sent:* Tuesday, April 5, 2022 11:04 AM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* [SR-Users] CRITICAL after solve kamailio.cfg "module db_mysql not found"
Dear Expert,
I found failure/critical status after restart kamailio 5.3.2.
Could you please to share correct step to install/loading lcr module ?
Previously, i did load lcr module in kamailio.cfg, found "error" db_bind_mod(): Module db_mysql not found. When changes lcr db_mysql inside kamailio.cfg file into DBURL, the error messages is transformed into as captured below :
Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:38 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:38 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: syntax error Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3536]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 27-31: Invalid arguments Apr 5 15:08:39 kamal kamailio: CRITICAL: <core> [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 468, column 32: Apr 5 15:08:39 kamal kamailio: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Kind Regards,
Dear Developer,
would you please share which pcre.h file ? due to my compiling source kamailio 5.5.4 found error.
Kind Regards,
In file included from dialplan.c:59:
dialplan.h:33:10: fatal error: pcre.h: No such file or directory
33 | #include <pcre.h>
| ^~~~~~~~
compilation terminated.