Hello.
I now using the mysql.so module, but now i'm getting this error
(even with a core.dump).
0(0) DEBUG: init_mod: pdt
0(0) PDT: initializing...
0(0) qm_malloc(0x4212f000, 4) called from pdt.c: mod_init(228)
0(0) qm_malloc(0x4212f000, 4) returns address 0x422e6098 frag. 0x422e6080
(size=4) on 1 -th hit
0(0) qm_malloc(0x80fc3c0, 16) called from fifo_server.c:
register_fifo_cmd(133)
0(0) qm_malloc(0x80fc3c0, 16) returns address 0x81333fc frag. 0x81333e4
(size=16) on 1 -th hit
0(0) DEBUG: register_fifo_cmd: new command (get_domainprefix) registered
0(0) qm_malloc(0x80fc3c0, 16) called from unixsock_server.c:
unixsock_register_cmd(673)
0(0) qm_malloc(0x80fc3c0, 16) returns address 0x813343c frag. 0x8133424
(size=16) on 1 -th hit
0(0) unixsock_register_cmd: New command (get_domainprefix) registered
0(0) qm_malloc(0x80fc3c0, 6) called from db/db.c: bind_dbmod(69)
0(0) qm_malloc(0x80fc3c0, 8) returns address 0x813347c frag. 0x8133464
(size=8) on 1 -th hit
0(0) find_mod_export: found <db_use_table> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_init> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_close> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_raw_query> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_free_result> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_insert> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_delete> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) find_mod_export: found <db_update> in module mysql
[/usr/local/lib/ser/modules/mysql.so]
0(0) qm_malloc(0x80fc3c0, 12) called from dbase.c: db_init(253)
0(0) qm_malloc(0x80fc3c0, 12) returns address 0x81334b4 frag. 0x813349c
(size=12) on 1 -th hit
0(0) qm_malloc(0x80fc3c0, 27) called from my_id.c: new_my_id(53)
0(0) qm_malloc(0x80fc3c0, 28) returns address 0x81334f0 frag. 0x81334d8
(size=28) on 1 -th hit
0(0) qm_malloc(0x80fc3c0, 36) called from my_id.c: new_my_id(60)
0(0) qm_malloc(0x80fc3c0, 36) returns address 0x813353c frag. 0x8133524
(size=36) on 1 -th hit
0(0) qm_malloc(0x80fc3c0, 5) called from my_id.c: new_my_id(73)
0(0) qm_malloc(0x80fc3c0, 8) returns address 0x8133590 frag. 0x8133578
(size=8) on 1 -th hit
Segmentation fault (core dumped)
This is my ser.cfg
#
# $Id: pdt.cfg,v 1.3 2003/11/03 13:03:58 janakj Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=9 # debug level (cmd line: -dddddddddd)
fork=no
log_stderror=yes# (cmd line: -E)
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
listen=xxx.xxx.xxx.232
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
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"
loadmodule "/usr/local/lib/ser/modules/pdt.so"
loadmodule "/usr/local/lib/ser/modules/avpops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
#loadmodule "/usr/lib/ser/modules/auth.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
#modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
#modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
#modparam("auth", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
#modparam("auth", "password_column", "password")
modparam("pdt", "db_url", "mysql://root@127.0.0.1/pdt")
modparam("pdt", "db_table", "domains")
modparam("pdt", "prefix", "00")
#modparam("pdt", "start_range", 2000)
#modparam("pdt", "hsize_2pow", 2)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwars==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= max_len ) {
sl_send_reply("513", "Message too big");
break;
};
loose_route();
prefix2domain();
record_route();
# forward to current uri now
if (!t_relay()) {
sl_reply_error();
};
}
Can someone help me?
Thanks in advance.
Ricardo.-
-----Mensaje original-----
De: Ricardo Martinez [mailto:rmartinez@redvoiss.net]
Enviado el: Viernes, 21 de Enero de 2005 17:14
Para: 'serusers(a)lists.iptel.org'
Asunto: [Serusers] Initialization PDT module problem.
Hello.
I was trying to start SER with the PDT module and i got this error
message. Can somone help me ?
0(0) PDT: initializing...
0(0) qm_malloc(0x4212f000, 4) called from pdt.c: mod_init(228)
0(0) qm_malloc(0x4212f000, 4) returns address 0x422e6098 frag. 0x422e6080
(size=4) on 1 -th hit
0(0) qm_malloc(0x80fc3c0, 16) called from fifo_server.c:
register_fifo_cmd(133)
0(0) qm_malloc(0x80fc3c0, 16) returns address 0x81337cc frag. 0x81337b4
(size=16) on 1 -th hit
0(0) DEBUG: register_fifo_cmd: new command (get_domainprefix) registered
0(0) qm_malloc(0x80fc3c0, 16) called from unixsock_server.c:
unixsock_register_cmd(673)
0(0) qm_malloc(0x80fc3c0, 16) returns address 0x813380c frag. 0x81337f4
(size=16) on 1 -th hit
0(0) unixsock_register_cmd: New command (get_domainprefix) registered
0(0) qm_malloc(0x80fc3c0, 6) called from db/db.c: bind_dbmod(69)
0(0) qm_malloc(0x80fc3c0, 8) returns address 0x813384c frag. 0x8133834
(size=8) on 1 -th hit
0(0) find_mod_export: <db_use_table> in module mysql not found
0(0) bind_dbmod: Module mysql does not export db_use_table function
0(0) qm_free(0x80fc3c0, 0x813384c), called from db/db.c: bind_dbmod(142)
0(0) qm_free: freeing frag. 0x8133834 alloc'ed from db/db.c: bind_dbmod(69)
0(0) PDT: mod_init: Database module not found
0(0) qm_free(0x4212f000, 0x422e6098), called from pdt.c: mod_init(356)
0(0) qm_free: freeing frag. 0x422e6080 alloc'ed from pdt.c: mod_init(228)
0(0) init_mod(): Error while initializing module pdt
ERROR: error while initializing modules
0(0) qm_free(0x80fc3c0, 0x813131c), called from sr_module.c:
destroy_modules(357)
0(0) qm_free: freeing frag. 0x8131304 alloc'ed from sr_module.c:
register_module(136)
0(0) PDT: mod_destroy : Cleaning up
0(0) qm_free(0x4212f000, 0x422e6098), called from pdt.c: mod_destroy(545)
0(0) BUG: qm_free: freeing already freed pointer, first free: pdt.c:
mod_init(356) - aborting
According to this the PDT module can't find the database. But this is the
"show databases" from mysql:mysql> show databases;
+------------+
| Database |
+------------+
| mysql |
| pdt |
| test |
+------------+
5 rows in set (0.00 sec)
mysql>
Anyone?
Thanks !
Ricardo.-
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers