the format of db_url has changed, now it has to start with the name of
the database driver (module), in your case, mysql, so the proper value is:
modparam("usrloc", "db_url",
"mysql://ser:heslo@localhost/ser")
If you look in NEWS file, you will find the note regarding database api
there in the section about changes in core.
Daniel
On 01/13/05 10:12, Zhaomin wrote:
Hello!
I do like your told me but I still can not start ser when I start /etc/init.d/ser
restart and loading mysql.so,if I am not loading mysql.so,the ser can start and working
fine.
[root@jzmv ser]# ser -E
[root@jzmv ser]# stateless - initializing
0(0) Maxfwd module- initializing
0(0) bind_dbmod: Module sql does not export db_use_table function
0(0) ERROR: mod_init(): Can't bind database module
0(0) init_mod(): Error while initializing module usrloc
ERROR: error while initializing modules
How can I do next step?
Thank you
My ser.cfg is configure like this:
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
modparam("usrloc", "db_url",
"sql://ser:heslo@localhost/ser")
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "timer_interval", 60)
modparam("usrloc", "desc_time_order", 1)
----- Original Message -----
From: "Ritesh Jalan" <ritesh.j(a)net4india.net>
To: "Zhaomin" <zhaomin(a)kingdream.com>om>; <serusers(a)lists.iptel.org>
Sent: Wednesday, January 12, 2005 6:26 PM
Subject: Re: [Serusers] I can not loading the mysql.so
>Go to ser.0.9.0
>change the directory to modules/mysql
>run make
>then copy the mysql.so file to your destination module folder
>cp mysql.so /usr/local/lib/ser/modules/
>
>
>Thanks & Regards
>Ritesh Jalan
>Senior Engineer - Test & Audit
>Net4india Ltd.
>504, Bhikaji Cama Bhawan
>11, Bhikaji Cama Place
>New Delhi 110066
>Tel: 91 (011) (26160129 - 131) (Extn 131)
>URL:
http://www.net4india.com
>----- Original Message -----
>From: "Zhaomin" <zhaomin(a)kingdream.com>
>To: <serusers(a)lists.iptel.org>
>Sent: Tuesday, January 11, 2005 7:48 AM
>Subject: [Serusers] I can not loading the mysql.so
>
>
>
>
>>I compiled the ser-0.9.0 ,when I start I get the error below:
>>#ser moni
>> 0(19509) ERROR: load_module: could not open module
>>
>>
></usr/local/lib/ser/modules/mysql.so>: /usr/local/lib/ser/modules/mysql.so:
>undefined symbol: fm_malloc
>
>
>> 0(19509) parse error (26,13-14): failed to load module
>>ERROR: bad config file (1 errors)
>>
>>How can I solve it?
>>
>>My mysql is mysql-3.23.58-2.3
>>
>>
>----------------------------------------------------------------------------
>----
>
>
>
>
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>