Re: [SR-Users] Kamailio Not Starting
Yes that is the problem. I modified file in init.d to accept higher values in memory settings and it worked. Thank you for your help. On Fri, Sep 23, 2016 at 9:08 PM, E. Schmidbauer wrote: > the error says: > > Not starting : invalid configuration file! > > Try running it with the path to your configuration file: > > /usr/sbin/kamailio -P /var/run/kamailio.pid -m 125 -M 32 -u kamailio -g > kamailio -c [path to kamailio.cfg] > > > > > > On Fri, Sep 23, 2016 at 10:21 AM, Linux Vince wrote: > >> Also i noticed that if i run manually it starts without error >> >> /usr/sbin/kamailio -P /var/run/kamailio.pid -m 125 -M 32 -u kamailio -g >> kamailio >> >> Is there any specific file i need to modify to set these memory values? >> >> I am using CentOS 6 >> >> On Fri, Sep 23, 2016 at 6:54 PM, Linux Vince wrote: >> >>> I am getting below error when i start kamailio >>> >>> Not starting : invalid configuration file! >>> >>> 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): >>> fm_search_defrag(0x7f732c5ff010, 232); Free fragment not found! >>> 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): >>> fm_malloc(0x7f732c5ff010, 232) called from core: route_struct.c: >>> mk_action(118), module: core; Free fragment not found! >>> 0(2360) CRITICAL: [route_struct.c:137]: mk_action(): memory >>> allocation failure >>> 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): >>> fm_search_defrag(0x7f732c5ff010, 40); Free fragment not found! >>> 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): >>> fm_malloc(0x7f732c5ff010, 40) called from core: cfg.y: yyparse(2636), >>> module: core; Free fragment not found! >>> 0(2360) : [cfg.y:3368]: yyerror_at(): parse error in config file >>> /etc/kamailio/proxy.cfg, line 5372, column 3-28: Not enough memory >>> ERROR: bad config file (1 errors) >>> >>> >>> I tried increasing SHM_MEMORY and PKG_MEMORY under /etc/default/kamailio >>> >>> I doubled memory but still getting same error. >>> >>> Is there any other place i should look at ? >>> >> >> >> ___ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> sr-users@lists.sip-router.org >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> > > ___ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamailio Not Starting
the error says: Not starting : invalid configuration file! Try running it with the path to your configuration file: /usr/sbin/kamailio -P /var/run/kamailio.pid -m 125 -M 32 -u kamailio -g kamailio -c [path to kamailio.cfg] On Fri, Sep 23, 2016 at 10:21 AM, Linux Vince wrote: > Also i noticed that if i run manually it starts without error > > /usr/sbin/kamailio -P /var/run/kamailio.pid -m 125 -M 32 -u kamailio -g > kamailio > > Is there any specific file i need to modify to set these memory values? > > I am using CentOS 6 > > On Fri, Sep 23, 2016 at 6:54 PM, Linux Vince wrote: > >> I am getting below error when i start kamailio >> >> Not starting : invalid configuration file! >> >> 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): >> fm_search_defrag(0x7f732c5ff010, 232); Free fragment not found! >> 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): >> fm_malloc(0x7f732c5ff010, 232) called from core: route_struct.c: >> mk_action(118), module: core; Free fragment not found! >> 0(2360) CRITICAL: [route_struct.c:137]: mk_action(): memory >> allocation failure >> 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): >> fm_search_defrag(0x7f732c5ff010, 40); Free fragment not found! >> 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): >> fm_malloc(0x7f732c5ff010, 40) called from core: cfg.y: yyparse(2636), >> module: core; Free fragment not found! >> 0(2360) : [cfg.y:3368]: yyerror_at(): parse error in config file >> /etc/kamailio/proxy.cfg, line 5372, column 3-28: Not enough memory >> ERROR: bad config file (1 errors) >> >> >> I tried increasing SHM_MEMORY and PKG_MEMORY under /etc/default/kamailio >> >> I doubled memory but still getting same error. >> >> Is there any other place i should look at ? >> > > > ___ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamailio Not Starting
Also i noticed that if i run manually it starts without error /usr/sbin/kamailio -P /var/run/kamailio.pid -m 125 -M 32 -u kamailio -g kamailio Is there any specific file i need to modify to set these memory values? I am using CentOS 6 On Fri, Sep 23, 2016 at 6:54 PM, Linux Vince wrote: > I am getting below error when i start kamailio > > Not starting : invalid configuration file! > > 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): > fm_search_defrag(0x7f732c5ff010, 232); Free fragment not found! > 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): > fm_malloc(0x7f732c5ff010, 232) called from core: route_struct.c: > mk_action(118), module: core; Free fragment not found! > 0(2360) CRITICAL: [route_struct.c:137]: mk_action(): memory > allocation failure > 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): > fm_search_defrag(0x7f732c5ff010, 40); Free fragment not found! > 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): > fm_malloc(0x7f732c5ff010, 40) called from core: cfg.y: yyparse(2636), > module: core; Free fragment not found! > 0(2360) : [cfg.y:3368]: yyerror_at(): parse error in config file > /etc/kamailio/proxy.cfg, line 5372, column 3-28: Not enough memory > ERROR: bad config file (1 errors) > > > I tried increasing SHM_MEMORY and PKG_MEMORY under /etc/default/kamailio > > I doubled memory but still getting same error. > > Is there any other place i should look at ? > ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Kamailio Not Starting
I am getting below error when i start kamailio Not starting : invalid configuration file! 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): fm_search_defrag(0x7f732c5ff010, 232); Free fragment not found! 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): fm_malloc(0x7f732c5ff010, 232) called from core: route_struct.c: mk_action(118), module: core; Free fragment not found! 0(2360) CRITICAL: [route_struct.c:137]: mk_action(): memory allocation failure 0(2360) ERROR: [mem/f_malloc.c:415]: fm_search_defrag(): fm_search_defrag(0x7f732c5ff010, 40); Free fragment not found! 0(2360) ERROR: [mem/f_malloc.c:498]: fm_malloc(): fm_malloc(0x7f732c5ff010, 40) called from core: cfg.y: yyparse(2636), module: core; Free fragment not found! 0(2360) : [cfg.y:3368]: yyerror_at(): parse error in config file /etc/kamailio/proxy.cfg, line 5372, column 3-28: Not enough memory ERROR: bad config file (1 errors) I tried increasing SHM_MEMORY and PKG_MEMORY under /etc/default/kamailio I doubled memory but still getting same error. Is there any other place i should look at ? ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamailio not starting
On Fri, Feb 21, 2014 at 12:18 AM, Owais ul Haq wrote: > Hello, > > I have deployed Kamailio-3.1 on a fedora machine. And my database is > placed on another windows 2008 server situated on the local network. > Problem is when I run kamailio. I get the following error from logs. > > [cfg.y:3416] : parse error in config gile > /usr/local/kamailio-3.1/etc/kamailio//kamailio.cfg, line 311, column 31-35 > : syntax error > > [cfg.y:3416] : parse error in config gile > /usr/local/kamailio-3.1/etc/kamailio//kamailio.cfg, line 311, column 31-35 > : Invalid arguments > > Line 311 is kamailio.cfg is > > "modparam ("usrloc", "db_url", DBURL)" > > And 'DBURL' is defined as > > #! define DBURL "mysql://openser:5mil5My5ql@192.168.1.20/openser" > > There should be no space between "#!" and "define". Corey ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Kamailio not starting
Hello, I have deployed Kamailio-3.1 on a fedora machine. And my database is placed on another windows 2008 server situated on the local network. Problem is when I run kamailio. I get the following error from logs. [cfg.y:3416] : parse error in config gile /usr/local/kamailio-3.1/etc/kamailio//kamailio.cfg, line 311, column 31-35 : syntax error [cfg.y:3416] : parse error in config gile /usr/local/kamailio-3.1/etc/kamailio//kamailio.cfg, line 311, column 31-35 : Invalid arguments Line 311 is kamailio.cfg is "modparam ("usrloc", "db_url", DBURL)" And 'DBURL' is defined as #! define DBURL "mysql://openser:5mil5My5ql@192.168.1.20/openser" Can some one please help me out in resolving this error. Secondly I am deploying my database on seperate server for the first time. I have deployed kamailio-3.1 already but with database placed on same machine. Can someone please guide what changings do I need to make in kamailio.cfg and kamctlrc file to make it work. I have made some as per my understanding. Maybe they are a cause of this error. Thanks, Regards, Owais ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users