Hi,
I am getting the following error when kamailio wants to connect to mysql within a simple perl program. "mysql" module is already loaded in the config file. Is there any modparam for mysql that has to be set?
ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate object method "connect" via package "DBI" at /etc/openser/test.pl line 17.
simple perl program:
#!/usr/bin/perl
use OpenSER; use OpenSER::Constants;
sub run { ??? }
1
Thanks, A. R.
_________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutori...
El Lunes, 11 de Mayo de 2009, Alex R.S.M escribió:
Hi,
I am getting the following error when kamailio wants to connect to mysql within a simple perl program. "mysql" module is already loaded in the config file. Is there any modparam for mysql that has to be set?
ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate object method "connect" via package "DBI" at /etc/openser/test.pl line 17.
You need to install some Perl libraries (DB access), as libdbi-perl (not sure if more libraries are required).
El Lunes, 11 de Mayo de 2009, Iñaki Baz Castillo escribió:
El Lunes, 11 de Mayo de 2009, Alex R.S.M escribió:
Hi,
I am getting the following error when kamailio wants to connect to mysql within a simple perl program. "mysql" module is already loaded in the config file. Is there any modparam for mysql that has to be set?
ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate object method "connect" via package "DBI" at /etc/openser/test.pl line 17.
You need to install some Perl libraries (DB access), as libdbi-perl (not sure if more libraries are required).
However, next time always look for the error in Google: http://www.google.com/search?q=perl+%22Can%27t+locate+object+method+%22conne... ;)
libdbi-perl is already installed. I can connect to mysql directly from perl script. The error occurs when calling perl script from kamailio.
- mysql.so exists in the lib folder and is being loaded into kamalio (loadmodule "mysql.so").
From: ibc@aliax.net To: users@lists.kamailio.org Date: Mon, 11 May 2009 22:29:23 +0200 Subject: Re: [Kamailio-Users] Error when connecting to mysql
El Lunes, 11 de Mayo de 2009, Alex R.S.M escribió:
Hi,
I am getting the following error when kamailio wants to connect to mysql within a simple perl program. "mysql" module is already loaded in the config file. Is there any modparam for mysql that has to be set?
ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate object method "connect" via package "DBI" at /etc/openser/test.pl line 17.
You need to install some Perl libraries (DB access), as libdbi-perl (not sure if more libraries are required).
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
_________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutori...
On 05/11/2009 11:53 PM, Alex R.S.M wrote:
libdbi-perl is already installed. I can connect to mysql directly from perl script. The error occurs when calling perl script from kamailio.
- mysql.so exists in the lib folder and is being loaded into kamalio
(loadmodule "mysql.so").
What is you kamailio version? latest have the file name db_mysql.so
Cheers, Daniel
From: ibc@aliax.net To: users@lists.kamailio.org Date: Mon, 11 May 2009 22:29:23 +0200 Subject: Re: [Kamailio-Users] Error when connecting to mysql
El Lunes, 11 de Mayo de 2009, Alex R.S.M escribió:
Hi,
I am getting the following error when kamailio wants to connect to
mysql
within a simple perl program. "mysql" module is already loaded in the config file. Is there any modparam for mysql that has to be set?
ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate
object method
"connect" via package "DBI" at /etc/openser/test.pl line 17.
You need to install some Perl libraries (DB access), as libdbi-perl
(not sure
if more libraries are required).
-- Iñaki Baz Castillo ibc@aliax.net
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Insert movie times and more without leaving Hotmail®. See how. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users