Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-14 Thread phil lemelin
Is there anything I can do to help with pinpointing the failure ? I have 2 different installations where I can compile kamailio 4.0.2 ( CentOS 6 where app_python fails and Ubuntu 12.10 where app_python works ). Best regards, On Fri, Jun 14, 2013 at 8:10 AM, Konstantin M. wrote: > Ok, I can con

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-14 Thread Konstantin M.
Ok, I can confirm, something is not good there. Not sure what exactly but I will look at this as soon as possible and push a fix if needs. 2013/6/13 phil lemelin > Good day people, > > I downloaded the source code for Kamailio on my CentOS 6 server and did > the following : > > Modified the mod

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
Good day people, I downloaded the source code for Kamailio on my CentOS 6 server and did the following : Modified the modules.ls to add db_mysql and app_python. Did the make all Did the make install Copied the configuration and had the same result. Seeing this, I installed myself a copy of ubun

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Konstantin M.
Could you please compress and attach core file. 2013/6/13 phil lemelin > Ok, I disabled WITH_MYSQL and left loadmodule "app_python.so" at the end > of all the other loadmodule directive and here is the output: > > 0(3572) DEBUG: [sr_module.c:935]: DEBUG: init_mod: app_python > 0(3572) DEBUG:

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
Ok, I disabled WITH_MYSQL and left loadmodule "app_python.so" at the end of all the other loadmodule directive and here is the output: 0(3572) DEBUG: [sr_module.c:935]: DEBUG: init_mod: app_python 0(3572) DEBUG: [sr_module.c:935]: DEBUG: init_mod: mi_fifo 0(3572) DEBUG: mi_fifo [mi_fifo.c:124]

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Konstantin M.
Yes, you're correct. Default values are: modparam("app_python", "script_name", "/usr/local/etc/sip-router/handler.py" modparam("app_python", "mod_init_function", "mod_init") modparam("app_python", "child_init_method", "child_init") But app_python is nothing related to db_mysql. Anyways, see my te

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
If i remove ' loadmodule "app_python.so" ', Kamailio starts just fine. This only appears when the app_python module is loaded. Is there anything else than mysql to enable when using the app_python ? Here is the ouput when I only enable mysql. The module is loaded and there are no issues... *

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Andrew Mortensen
On Jun 13, 2013, at 7:23 AM, phil lemelin wrote: > Good morning, > > I'm trying to use the app_python module with Kamailio but i'm unable to even > reach a point where it loads my python module. It's actually failing even before that. It's unable to load the db_mysql module: > 0(751) DEBUG

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
As describe in my original post: The installed packages: [root@host ~]# rpm -qa | grep kamai kamailio-4.0.1-1.1.x86_64 kamailio-mysql-4.0.1-1.1.x86_ 64 kamailio-python-4.0.1-1.1.x86_64 So, Kamailio 4.0.1-1.1 My understanding is that the default values are the following: modparam("app_python", "

Re: [SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread Konstantin M.
Hello, What version of kamailio are you using ? It is not enough just to add 'loadmodule "app_python.so"'. This module have to be configured properly. For example: modparam("app_python", "script_name", "/path/to/python/file.py" modparam("app_python", "mod_init_function", "mod_init") modparam("app_

[SR-Users] app_python module fails with "AttributeError: init_modules() has failed"

2013-06-13 Thread phil lemelin
Good morning, I'm trying to use the app_python module with Kamailio but i'm unable to even reach a point where it loads my python module. My host: CentOS release 6.3 (Final) 2.6.32-042stab076.7 x86_64 The installed packages: [root@host ~]# rpm -qa | grep kamai kamailio-4.0.1-1.1.x86_64 kamaili