When I do that this is all that hits the errorlog file:
May 12 11:23:11 lunar ser: init_mod(): Error while initializing module
jabber
May 12 11:23:11 lunar ser: init_mod(): Error while initializing module
jabber
Could it just be a corrupt jabber.so file? If so could you attach one
for ser 0.8.11?
Gary Goodloff
KALG Communications, LTD
T: 402-898-4152
C: 402-208-5183
F: 413-294-3404
-----Original Message-----
From: serusers-admin(a)iptel.org [mailto:serusers-admin@lists.iptel.org] On
Behalf Of Daniel-Constantin Mierla
Sent: Monday, May 12, 2003 3:57 AM
To: Gary Goodloff
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] JABBER HELP ANYONE?
Hello,
go into debugging mode as a comment in your config file said (and
comment the previous three lines) and start again the SER. You should
see a lot of debug messages that will help use more to identify the
problem. Do it and send the debug messages, especially the ones
including the "XJAB" word.
Best regards,
Daniel
On 5/11/2003 5:11 AM, Gary Goodloff wrote:
HELP!!! --
I have tried installing jabber off of the sip-router CVS distr. I get
it compiled and when I try to start SER I get:
May 10 22:06:32 lunar /usr/local/sbin/ser[64543]: init_mod(): Error
while initializing module jabber
May 10 22:06:32 lunar /usr/local/sbin/ser[64543]: init_mod(): Error
while initializing module jabber
Here is my config:
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
fork=no
log_stderror=yes
*/
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"
# ------------------ 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/textops.so"
loadmodule "/usr/local/lib/ser/modules/print.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/acc.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/jabber.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"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
/* 0 -- dont use mysql, 1 -- write_through, 2--write_back */
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "timer_interval", 10)
modparam("usrloc",
"db_url","sql://ser:heslo@localhost/ser")
# -- auth params --
#modparam("auth", "calculate_ha1", yes)
modparam("auth_db",
"db_url","sql://ser:heslo@localhost/ser")
modparam("auth_db", "user_column", "username")
# nonce generation secret; particularly useful if multiple servers
# in a proxy farm are configured to authenticate
#modparam("auth", "secret", "43sjkl33T9kjj_5jvlA384hg")
#modparam("auth", "nonce_expire", 300)
#modparam("auth", "retry_count", 5)
# -- acc params --
# report ACKs too for sake of completeness -- as we account PSTN
# destinations which are RR, ACKs should show up
modparam("acc", "report_ack", 1)
modparam("acc", "log_level", 1)
# that is the flag for which we will account -- don't forget to
# set the same one :-)
/* Usage of flags is as follows: 1==should account(all to gateway),
2==should rr (all to gateway, MESSAGES, etc), 3==should report
on missed calls (transactions to iptel.org's users), 4==destination
user wishes to use voicemail
*/
modparam("acc", "db_flag", 1 )
modparam("acc", "db_missed_flag", 3 )
# -- tm params --
modparam("tm", "fr_timer", 20 )
modparam("tm", "fr_inv_timer", 90 )
modparam("tm", "wt_timer", 20 )
modparam("tm", "uac_from", "sip:admin@sip.kalg.net" )
# ------- JABBER -----------------
modparam("jabber","db_url","sql://<login to
db>@localhost/sip_jab")
modparam("jabber","jaddress","localhost")
modparam("jabber","jport",5222)
modparam("jabber","workers",2)
modparam("jabber","max_jobs",10)
modparam("jabber","aliases","4;icq.jabber.kalg.net…g.net;msn.jabber.kalg.net;
y
ahoo.jabber.kalg.net;aim.jabber.kalg.net")
modparam("jabber","jdomain","jabber.kalg.net")
# ------------------------- request routing logic -------------------
# main routing logic
route{
if ((search("To:.*@icq\.jabber\.kalg\.net"))
|| (search("To:.*@aim\.jabber\.kalg\.net"))
|| (search("To:.*@msn\.jabber\.kalg\.net"))
|| (search("To:.*@jabber\.kalg\.net"))
|| (search("To:.*@yahoo\.jabber\.kalg\.net")))
{
if (method=="MESSAGE")
{
log("MESSAGE received -> manage it with
XJAB\n");
if(search("\n:online"))
{
if (jab_go_online())
{
sl_send_reply("200","Accepted");
}else{
sl_send_reply("404","Not
found");
};
break;
};
if(search("\n:offline"))
{
if (jab_go_offline())
{
sl_send_reply("200","Accepted");
}else{
sl_send_reply("404","Not
found");
};
break;
};
if(search("\n:join"))
{
if (jab_join_jconf())
{
sl_send_reply("200","Accepted");
}else{
sl_send_reply("404","Not
Found");
};
break;
};
if(search("\n:exit"))
{
if (jab_exit_jconf())
{
sl_send_reply("200","Accepted");
}else{
sl_send_reply("404","Not
Found");
};
break;
};
if (jab_send_message())
{
sl_send_reply("200","Accepted");
}else{
sl_send_reply("503","Service
Unavailable");
};
break;
};
};
forward(uri:host,uri:port);
lookup("aliases");
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (len_gt( max_len )) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
record_route();
# loose-route processing
loose_route();
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri=~"kalg.net") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("kalg.net", "subscriber"))
{
www_challenge("kalg.net", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC
DB
if (!lookup("location")) {
sl_send_reply("404","Currently Not
Available");
break;
};
};
# set for accounting (the same value as in acc_flag!)
if (method=="INVITE" || method=="BYE"){
setflag(1);
# ... and also report on missed calls ... note that reporting
# on missed calls is mutually exclusive with silent C timer
#
setflag(3);
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
Gary Goodloff
KALG Communications, LTD
T: 402-898-4152
C: 402-208-5183
F: 413-294-3404
_______________________________________________
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