Hi,
I recently installed kamailio 4.1.1 on debian wheezy (i386) to test and play with. I managed to get it up and running, but now when trying to use the msilo module kamailio won't start and says it can't find it.
My modules appear to be correctly installed in /usr/lib/i386-linux-gnu/kamailio/modules
I can see them all in there, including msilo.so. I have correctly setup kamailio.cfg with mpath="/usr/lib/i386-linux-gnu/kamailio/modules/"
All the other modules load fine, but when I add 'loadmodule "msilo.so"' and then do a restart, kamailio throws a bunch of errors:
Not starting Kamailio SIP server: invalid configuration file! ... failed! failed! 0(27760) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(27760) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 3, column 75: Can't set module parameter 0(27760) ERROR: <core>
I don't understand why Kamailio can't seem to find and load the msilo module. It is in the /usr/lib/i386-linux-gnu/kamailio/modules directory and has the same permissions as the other modules which it correctly loads.
Any ideas of what's wrong?
Thanks
Hello,
are there any other error messages above?
Can you start with debug=3 in config and see if the logs messages give more hints about?
Cheers, Daniel
On 28/01/14 18:27, Peter Villeneuve wrote:
Hi,
I recently installed kamailio 4.1.1 on debian wheezy (i386) to test and play with. I managed to get it up and running, but now when trying to use the msilo module kamailio won't start and says it can't find it.
My modules appear to be correctly installed in /usr/lib/i386-linux-gnu/kamailio/modules
I can see them all in there, including msilo.so. I have correctly setup kamailio.cfg with mpath="/usr/lib/i386-linux-gnu/kamailio/modules/"
All the other modules load fine, but when I add 'loadmodule "msilo.so"' and then do a restart, kamailio throws a bunch of errors:
Not starting Kamailio SIP server: invalid configuration file! ... failed! failed! 0(27760) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(27760) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 3, column 75: Can't set module parameter 0(27760) ERROR: <core>
I don't understand why Kamailio can't seem to find and load the msilo module. It is in the /usr/lib/i386-linux-gnu/kamailio/modules directory and has the same permissions as the other modules which it correctly loads.
Any ideas of what's wrong?
Thanks
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Hi Daniel,
Thanks for the quick reply. Unfortunately turning on more verbose debugging doesn't seem to make a difference at all. I've tried enabling #!define WITH_DEBUG and also setting debug=3 but all I get upon kamailio start is the error message I reported. Here's the full error messages I get on startup:
root@deb7:/usr/lib/i386-linux-gnu/kamailio/modules# /etc/init.d/kamailio debug Not starting Kamailio SIP server: invalid configuration file! ... failed! failed! 0(28488) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 8, column 75: Can't set module parameter 0(28488) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 9, column 64: Can't set module parameter 0(28488) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 10, column 87: Can't set module parameter 0(28488) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 11, column 67: Can't set module parameter 0(28488) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 12, column 62: Can't set module parameter 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command mf_process_maxfwd_header 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 41, column 40: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command sl_send_reply 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 43, column 43: unknown command, missing loadmodule? 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 49, column 5: syntax error 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 49, column 5: bad command 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 49, column 5: bad command 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command save 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 53, column 28: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command m_dump 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 57, column 24: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command lookup 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 68, column 30: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command t_newtran 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 70, column 29: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command sl_reply_error 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 72, column 32: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command t_reply 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 78, column 48: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command sl_reply_error 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 80, column 36: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command m_store 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 86, column 30: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command t_reply 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 89, column 47: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command sl_reply_error 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 91, column 36: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command t_reply 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 95, column 58: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command sl_reply_error 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 97, column 36: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command t_on_failure 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 104, column 25: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command t_relay 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 105, column 17: unknown command, missing loadmodule? 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 110, column 12: syntax error 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 110, column 12: ERROR: bad config file (26 errors) ... failed! failed!
On Tue, Jan 28, 2014 at 5:34 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
are there any other error messages above?
Can you start with debug=3 in config and see if the logs messages give more hints about?
Cheers, Daniel
On 28/01/14 18:27, Peter Villeneuve wrote:
Hi,
I recently installed kamailio 4.1.1 on debian wheezy (i386) to test and play with. I managed to get it up and running, but now when trying to use the msilo module kamailio won't start and says it can't find it.
My modules appear to be correctly installed in /usr/lib/i386-linux-gnu/kamailio/modules
I can see them all in there, including msilo.so. I have correctly setup kamailio.cfg with mpath="/usr/lib/i386-linux-gnu/kamailio/modules/"
All the other modules load fine, but when I add 'loadmodule "msilo.so"' and then do a restart, kamailio throws a bunch of errors:
Not starting Kamailio SIP server: invalid configuration file! ... failed! failed! 0(27760) ERROR: <core> [modparam.c:163]: set_mod_param_regex(): set_mod_param_regex: No module matching <msilo> found 0(27760) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 3, column 75: Can't set module parameter 0(27760) ERROR: <core>
I don't understand why Kamailio can't seem to find and load the msilo module. It is in the /usr/lib/i386-linux-gnu/kamailio/modules directory and has the same permissions as the other modules which it correctly loads.
Any ideas of what's wrong?
Thanks
sr-dev mailing listsr-dev@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
-- Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
2014-01-28 Peter Villeneuve petervnv1@gmail.com:
[cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 41, column 40: unknown command, missing loadmodule? 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command sl_send_reply 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 43, column 43: unknown command, missing loadmodule? 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 49, column 5: syntax error 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 49, column 5: bad command 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 49, column 5: bad command 0(28488) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command save 0(28488) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio-local.cfg, line 53, column 28: unknown command, missing loadmodule? 0(28488) ERROR: <core>
Seems that you are not loading tm module...
2014-01-28 Victor Seva linuxmaniac@torreviejawireless.org:
Seems that you are not loading tm module...
Sorry I meant sl module.
sl_send_reply...
Well it's both in the kamailio.cfg (loadmodule "sl.so") and I can see it in the modules directory too, so, just like msilo, it should load.
Indeed, when I comment out importing kamailio-local.cfg (this is where I placed all the msilo related configs from the wiki), kamailio loads just fine (including tm and sl modules).
This is why I think this is msilo related.
On Tue, Jan 28, 2014 at 6:12 PM, Victor Seva < linuxmaniac@torreviejawireless.org> wrote:
2014-01-28 Victor Seva linuxmaniac@torreviejawireless.org:
Seems that you are not loading tm module...
Sorry I meant sl module.
sl_send_reply...
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Anyone have any other ideas as to what's wrong? What's the command to see what modules are loaded?
On Tue, Jan 28, 2014 at 6:18 PM, Peter Villeneuve petervnv1@gmail.comwrote:
Well it's both in the kamailio.cfg (loadmodule "sl.so") and I can see it in the modules directory too, so, just like msilo, it should load.
Indeed, when I comment out importing kamailio-local.cfg (this is where I placed all the msilo related configs from the wiki), kamailio loads just fine (including tm and sl modules).
This is why I think this is msilo related.
On Tue, Jan 28, 2014 at 6:12 PM, Victor Seva < linuxmaniac@torreviejawireless.org> wrote:
2014-01-28 Victor Seva linuxmaniac@torreviejawireless.org:
Seems that you are not loading tm module...
Sorry I meant sl module.
sl_send_reply...
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
This is just a thought, since I recently had a similar issue.
At one point after deleting a few lines of (I thought) old config I got errors for 'module not loaded' and it turned out I had left a closing #!endif in place. The syntax checker gave a error on a completely different line. If the error appears to go away when you don't use the kamailio-local.cfg file, is there something in that file (e.g. in the msilo data you copied) that is not syntactically correct?
Regards, Hugh
On 28/01/2014 18:18, Peter Villeneuve wrote:
Well it's both in the kamailio.cfg (loadmodule "sl.so") and I can see it in the modules directory too, so, just like msilo, it should load.
Indeed, when I comment out importing kamailio-local.cfg (this is where I placed all the msilo related configs from the wiki), kamailio loads just fine (including tm and sl modules).
This is why I think this is msilo related.
On Tue, Jan 28, 2014 at 6:12 PM, Victor Seva <linuxmaniac@torreviejawireless.org mailto:linuxmaniac@torreviejawireless.org> wrote:
2014-01-28 Victor Seva <linuxmaniac@torreviejawireless.org <mailto:linuxmaniac@torreviejawireless.org>>: > Seems that you are not loading tm module... Sorry I meant sl module. sl_send_reply... _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org <mailto:sr-dev@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Thanks Hugh. Good advice. I've now commented out the kamailio-local.cfg file and added the loadmodule "msilo.so" line to the main config. I also added the msilo parameters (modparam("msilo") directly to kamailio.cfg and now indeed kamailio starts without issues. I presume then that msilo module is loading after all and the issue lies in the syntax in kamailio-local.cfg. Now I need to go over the routing logic I copy/pasted from the wiki herehttp://kamailio.org/docs/modules/4.1.x/modules/msilo.htmland try to see why it isn't working for me. I'm still new to kamailio and am getting used to its syntax and logic. I'm using the default config but it seems the wiki example isn't compatible with a vanilla default install.
If anyone knows of a good tutorial integrating a default kamailio 4.1.1 install with msilo, please share.
Thanks again Hugh
On Tue, Jan 28, 2014 at 8:17 PM, Hugh Waite hugh.waite@crocodile-rcs.comwrote:
This is just a thought, since I recently had a similar issue.
At one point after deleting a few lines of (I thought) old config I got errors for 'module not loaded' and it turned out I had left a closing #!endif in place. The syntax checker gave a error on a completely different line. If the error appears to go away when you don't use the kamailio-local.cfg file, is there something in that file (e.g. in the msilo data you copied) that is not syntactically correct?
Regards, Hugh
On 28/01/2014 18:18, Peter Villeneuve wrote:
Well it's both in the kamailio.cfg (loadmodule "sl.so") and I can see it in the modules directory too, so, just like msilo, it should load.
Indeed, when I comment out importing kamailio-local.cfg (this is where I placed all the msilo related configs from the wiki), kamailio loads just fine (including tm and sl modules).
This is why I think this is msilo related.
On Tue, Jan 28, 2014 at 6:12 PM, Victor Seva < linuxmaniac@torreviejawireless.org> wrote:
2014-01-28 Victor Seva linuxmaniac@torreviejawireless.org:
Seems that you are not loading tm module...
Sorry I meant sl module.
sl_send_reply...
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
sr-dev mailing listsr-dev@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
-- Hugh Waite Principal Design Engineer Crocodile RCS Ltd.
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev