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;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
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;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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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@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@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;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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
When you have
debug=7 fork=no log_stderror=yes
in your config file you should see a lot of debug messages in console. Start SER using 'ser -f /path_to_config_file/ser.cfg' -- stdout and stderr may be redirected to /dev/null if you use a init.d script. Capture those log/debug messages from console, either using a redirection to a file or using copy/paste, and send them to me or to serhelp@lists.iptel.org if the size is too big.
Best regards, Daniel
On 5/12/2003 6:21 PM, Gary Goodloff wrote:
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@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@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;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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Debug info for JABBER -
0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(231) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce968 frag. 0x80ce950 (size=8) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(240) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce638 frag. 0x80ce620 (size=32) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(240) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce688 frag. 0x80ce670 (size=8) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 24) called from dbase.c: db_init(284) 0(77704) qm_malloc(0x80c3320, 24) returns address 0x80ce6c0 frag. 0x80ce6a8 (size=48) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 36) called from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 36) returns address 0x80cf0f0 frag. 0x80cf0d8 (size=36) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 496) called from dbase.c: connect_db(88) 0(77704) qm_malloc(0x80c3320, 496) returns address 0x80cf144 frag. 0x80cf12c (size=496) on 1 -th hit 0(77704) qm_free(0x80c3320, 0x80cf0f0), called from dbase.c: connect_db(105) 0(77704) qm_free: freeing frag. 0x80cf0d8 alloc'ed from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 7) called from db_con.c: use_table(53) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80cf0f0 frag. 0x80cf0d8 (size=36) on 1 -th hit 0(77704) XJAB:mod_init: Database connection opened successfuly 0(77704) qm_malloc(0x80c3320, 24) called from dbase.c: db_init(284) 0(77704) qm_malloc(0x80c3320, 24) returns address 0x80cf364 frag. 0x80cf34c (size=60) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 36) called from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 36) returns address 0x80ce9a0 frag. 0x80ce988 (size=36) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 496) called from dbase.c: connect_db(88) 0(77704) qm_malloc(0x80c3320, 496) returns address 0x80ce9f4 frag. 0x80ce9dc (size=496) on 1 -th hit 0(77704) qm_free(0x80c3320, 0x80ce9a0), called from dbase.c: connect_db(105) 0(77704) qm_free: freeing frag. 0x80ce988 alloc'ed from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 7) called from db_con.c: use_table(53) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce9a0 frag. 0x80ce988 (size=36) on 1 -th hit 0(77704) XJAB:mod_init: Database connection opened successfuly 0(77704) XJAB:mod_init: pipe[0] = <7>-<8> 0(77704) XJAB:mod_init: pipe[1] = <9>-<10> 0(77704) XJAB:xj_wlist_init: -----START----- 0(77704) qm_malloc(0x2815d000, 32) called from xjab_wlist.c: xj_wlist_init(69) 0(77704) qm_malloc(0x2815d000, 32) returns address 0x282e5c60 frag. 0x282e5c48 (size=32) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 16) called from ../../lock_alloc.h: lock_set_alloc(69) 0(77704) qm_malloc(0x2815d000, 16) returns address 0x282e5cb0 frag. 0x282e5c98 (size=16) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 40) called from xjab_wlist.c: xj_wlist_init(92) 0(77704) qm_malloc(0x2815d000, 40) returns address 0x282e5cf0 frag. 0x282e5cd8 (size=40) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from tree234.c: newtree234(68) 0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5d48 frag. 0x282e5d30 (size=8) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from tree234.c: newtree234(68) 0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5d80 frag. 0x282e5d68 (size=8) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases 0(77704) qm_malloc(0x2815d000, 24) called from xjab_wlist.c: xj_wlist_set_aliases(410) 0(77704) qm_malloc(0x2815d000, 24) returns address 0x282e5db8 frag. 0x282e5da0 (size=24) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from xjab_wlist.c: xj_wlist_set_aliases(434) 0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5e00 frag. 0x282e5de8 (size=8) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 15) called from xjab_wlist.c: xj_wlist_set_aliases(442) 0(77704) qm_malloc(0x2815d000, 16) returns address 0x282e5e38 frag. 0x282e5e20 (size=16) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: jdomain=jabber.kalg.net delim=* 0(77704) qm_malloc(0x2815d000, 4) called from xjab_wlist.c: xj_wlist_set_aliases(506) 0(77704) qm_malloc(0x2815d000, 4) returns address 0x282e5e78 frag. 0x282e5e60 (size=4) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 32) called from xjab_wlist.c: xj_wlist_set_aliases(514) 0(77704) qm_malloc(0x2815d000, 32) returns address 0x282e5eac frag. 0x282e5e94 (size=32) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 19) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 20) returns address 0x282e5efc frag. 0x282e5ee4 (size=20) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[1/4]=icq.jabber.kalg.net delim=X 0(77704) qm_malloc(0x2815d000, 19) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 20) returns address 0x282e5f40 frag. 0x282e5f28 (size=20) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[2/4]=msn.jabber.kalg.net delim=X 0(77704) qm_malloc(0x2815d000, 21) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 24) returns address 0x282e5f84 frag. 0x282e5f6c (size=24) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[3/4]=yahoo.jabber.kalg.net delim=X 0(77704) XJAB:xj_wlist_set_aliases: bad parameter value format 0(77704) qm_free(0x2815d000, 0x282e5f84), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5f6c alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5f40), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5f28 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5efc), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5ee4 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5eac), called from xjab_wlist.c: xj_wlist_set_aliases(560) 0(77704) qm_free: freeing frag. 0x282e5e94 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(514) 0(77704) qm_free(0x2815d000, 0x282e5e78), called from xjab_wlist.c: xj_wlist_set_aliases(564) 0(77704) qm_free: freeing frag. 0x282e5e60 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(506) 0(77704) qm_free(0x2815d000, 0x282e5e38), called from xjab_wlist.c: xj_wlist_set_aliases(575) 0(77704) qm_free: freeing frag. 0x282e5e20 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(442) 0(77704) qm_free(0x2815d000, 0x282e5e00), called from xjab_wlist.c: xj_wlist_set_aliases(576) 0(77704) qm_free: freeing frag. 0x282e5de8 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(434) 0(77704) qm_free(0x2815d000, 0x282e5db8), called from xjab_wlist.c: xj_wlist_set_aliases(578) 0(77704) qm_free: freeing frag. 0x282e5da0 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(410) 0(77704) XJAB:mod_init: error setting aliases and outbound proxy 0(77704) init_mod(): Error while initializing module jabber ERROR: error while initializing modules 0(77704) INFO: signal 15 received 0(77704) Memory status (pkg): 0(77704) qm_status (0x80c3320): 0(77704) heap size= 1022872 0(77704) used= 7828, used+overhead=48748, free=974124 0(77704) max used (+overhead)= 48748 0(77704) dumping all allocked. fragments: 0(77704) 0. N address=0x80c9770 frag=0x80c9758 size=16 0(77704) alloc'd from fifo_server.c: register_fifo_cmd(122) 0(77704) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Hello, please send me the config file (at least the jabber module parameters setting). It seems that some parameters are in a wrong format. Maybe this link will help you: http://www.iptel.org/ser/doc/jabgw/xjab-manual.html
Best regards, Daniel
On 5/13/2003 11:27 PM, Gary Goodloff wrote:
Debug info for JABBER -
0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(231) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce968 frag. 0x80ce950 (size=8) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(240) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce638 frag. 0x80ce620 (size=32) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(240) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce688 frag. 0x80ce670 (size=8) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 24) called from dbase.c: db_init(284) 0(77704) qm_malloc(0x80c3320, 24) returns address 0x80ce6c0 frag. 0x80ce6a8 (size=48) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 36) called from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 36) returns address 0x80cf0f0 frag. 0x80cf0d8 (size=36) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 496) called from dbase.c: connect_db(88) 0(77704) qm_malloc(0x80c3320, 496) returns address 0x80cf144 frag. 0x80cf12c (size=496) on 1 -th hit 0(77704) qm_free(0x80c3320, 0x80cf0f0), called from dbase.c: connect_db(105) 0(77704) qm_free: freeing frag. 0x80cf0d8 alloc'ed from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 7) called from db_con.c: use_table(53) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80cf0f0 frag. 0x80cf0d8 (size=36) on 1 -th hit 0(77704) XJAB:mod_init: Database connection opened successfuly 0(77704) qm_malloc(0x80c3320, 24) called from dbase.c: db_init(284) 0(77704) qm_malloc(0x80c3320, 24) returns address 0x80cf364 frag. 0x80cf34c (size=60) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 36) called from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 36) returns address 0x80ce9a0 frag. 0x80ce988 (size=36) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 496) called from dbase.c: connect_db(88) 0(77704) qm_malloc(0x80c3320, 496) returns address 0x80ce9f4 frag. 0x80ce9dc (size=496) on 1 -th hit 0(77704) qm_free(0x80c3320, 0x80ce9a0), called from dbase.c: connect_db(105) 0(77704) qm_free: freeing frag. 0x80ce988 alloc'ed from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 7) called from db_con.c: use_table(53) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce9a0 frag. 0x80ce988 (size=36) on 1 -th hit 0(77704) XJAB:mod_init: Database connection opened successfuly 0(77704) XJAB:mod_init: pipe[0] = <7>-<8> 0(77704) XJAB:mod_init: pipe[1] = <9>-<10> 0(77704) XJAB:xj_wlist_init: -----START----- 0(77704) qm_malloc(0x2815d000, 32) called from xjab_wlist.c: xj_wlist_init(69) 0(77704) qm_malloc(0x2815d000, 32) returns address 0x282e5c60 frag. 0x282e5c48 (size=32) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 16) called from ../../lock_alloc.h: lock_set_alloc(69) 0(77704) qm_malloc(0x2815d000, 16) returns address 0x282e5cb0 frag. 0x282e5c98 (size=16) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 40) called from xjab_wlist.c: xj_wlist_init(92) 0(77704) qm_malloc(0x2815d000, 40) returns address 0x282e5cf0 frag. 0x282e5cd8 (size=40) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from tree234.c: newtree234(68) 0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5d48 frag. 0x282e5d30 (size=8) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from tree234.c: newtree234(68) 0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5d80 frag. 0x282e5d68 (size=8) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases 0(77704) qm_malloc(0x2815d000, 24) called from xjab_wlist.c: xj_wlist_set_aliases(410) 0(77704) qm_malloc(0x2815d000, 24) returns address 0x282e5db8 frag. 0x282e5da0 (size=24) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from xjab_wlist.c: xj_wlist_set_aliases(434) 0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5e00 frag. 0x282e5de8 (size=8) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 15) called from xjab_wlist.c: xj_wlist_set_aliases(442) 0(77704) qm_malloc(0x2815d000, 16) returns address 0x282e5e38 frag. 0x282e5e20 (size=16) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: jdomain=jabber.kalg.net delim=* 0(77704) qm_malloc(0x2815d000, 4) called from xjab_wlist.c: xj_wlist_set_aliases(506) 0(77704) qm_malloc(0x2815d000, 4) returns address 0x282e5e78 frag. 0x282e5e60 (size=4) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 32) called from xjab_wlist.c: xj_wlist_set_aliases(514) 0(77704) qm_malloc(0x2815d000, 32) returns address 0x282e5eac frag. 0x282e5e94 (size=32) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 19) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 20) returns address 0x282e5efc frag. 0x282e5ee4 (size=20) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[1/4]=icq.jabber.kalg.net delim=X 0(77704) qm_malloc(0x2815d000, 19) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 20) returns address 0x282e5f40 frag. 0x282e5f28 (size=20) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[2/4]=msn.jabber.kalg.net delim=X 0(77704) qm_malloc(0x2815d000, 21) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 24) returns address 0x282e5f84 frag. 0x282e5f6c (size=24) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[3/4]=yahoo.jabber.kalg.net delim=X 0(77704) XJAB:xj_wlist_set_aliases: bad parameter value format 0(77704) qm_free(0x2815d000, 0x282e5f84), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5f6c alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5f40), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5f28 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5efc), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5ee4 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5eac), called from xjab_wlist.c: xj_wlist_set_aliases(560) 0(77704) qm_free: freeing frag. 0x282e5e94 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(514) 0(77704) qm_free(0x2815d000, 0x282e5e78), called from xjab_wlist.c: xj_wlist_set_aliases(564) 0(77704) qm_free: freeing frag. 0x282e5e60 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(506) 0(77704) qm_free(0x2815d000, 0x282e5e38), called from xjab_wlist.c: xj_wlist_set_aliases(575) 0(77704) qm_free: freeing frag. 0x282e5e20 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(442) 0(77704) qm_free(0x2815d000, 0x282e5e00), called from xjab_wlist.c: xj_wlist_set_aliases(576) 0(77704) qm_free: freeing frag. 0x282e5de8 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(434) 0(77704) qm_free(0x2815d000, 0x282e5db8), called from xjab_wlist.c: xj_wlist_set_aliases(578) 0(77704) qm_free: freeing frag. 0x282e5da0 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(410) 0(77704) XJAB:mod_init: error setting aliases and outbound proxy 0(77704) init_mod(): Error while initializing module jabber ERROR: error while initializing modules 0(77704) INFO: signal 15 received 0(77704) Memory status (pkg): 0(77704) qm_status (0x80c3320): 0(77704) heap size= 1022872 0(77704) used= 7828, used+overhead=48748, free=974124 0(77704) max used (+overhead)= 48748 0(77704) dumping all allocked. fragments: 0(77704) 0. N address=0x80c9770 frag=0x80c9758 size=16 0(77704) alloc'd from fifo_server.c: register_fifo_cmd(122) 0(77704) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
# # $Id: ser.cfg,v 1.19 2003/05/07 11:56:44 janakj Exp $ # # simple quick-start config script #
# ----------- global configuration parameters ------------------------
/* debug=3 # debug level (cmd line: -dddddddddd) fork=yes log_stderror=no # (cmd line: -E) */
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://root:*****@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;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
-----Original Message----- From: serusers-admin@iptel.org [mailto:serusers-admin@lists.iptel.org] On Behalf Of Daniel-Constantin Mierla Sent: Wednesday, May 14, 2003 3:38 AM To: Gary Goodloff Cc: serusers@lists.iptel.org Subject: Re: [Serusers] JABBER HELP ANYONE?
Hello, please send me the config file (at least the jabber module parameters setting). It seems that some parameters are in a wrong format. Maybe this link will help you: http://www.iptel.org/ser/doc/jabgw/xjab-manual.html
Best regards, Daniel
On 5/13/2003 11:27 PM, Gary Goodloff wrote:
Debug info for JABBER -
0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(231) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce968 frag. 0x80ce950 (size=8) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(240) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce638 frag. 0x80ce620 (size=32) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 8) called from jabber.c: mod_init(240) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce688 frag. 0x80ce670 (size=8) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 24) called from dbase.c: db_init(284) 0(77704) qm_malloc(0x80c3320, 24) returns address 0x80ce6c0 frag. 0x80ce6a8 (size=48) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 36) called from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 36) returns address 0x80cf0f0 frag. 0x80cf0d8 (size=36) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 496) called from dbase.c: connect_db(88) 0(77704) qm_malloc(0x80c3320, 496) returns address 0x80cf144 frag. 0x80cf12c (size=496) on 1 -th hit 0(77704) qm_free(0x80c3320, 0x80cf0f0), called from dbase.c: connect_db(105) 0(77704) qm_free: freeing frag. 0x80cf0d8 alloc'ed from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 7) called from db_con.c: use_table(53) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80cf0f0 frag. 0x80cf0d8 (size=36) on 1 -th hit 0(77704) XJAB:mod_init: Database connection opened successfuly 0(77704) qm_malloc(0x80c3320, 24) called from dbase.c: db_init(284) 0(77704) qm_malloc(0x80c3320, 24) returns address 0x80cf364 frag. 0x80cf34c (size=60) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 36) called from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 36) returns address 0x80ce9a0 frag. 0x80ce988 (size=36) on 1 -th hit 0(77704) qm_malloc(0x80c3320, 496) called from dbase.c: connect_db(88) 0(77704) qm_malloc(0x80c3320, 496) returns address 0x80ce9f4 frag. 0x80ce9dc (size=496) on 1 -th hit 0(77704) qm_free(0x80c3320, 0x80ce9a0), called from dbase.c: connect_db(105) 0(77704) qm_free: freeing frag. 0x80ce988 alloc'ed from dbase.c: connect_db(68) 0(77704) qm_malloc(0x80c3320, 7) called from db_con.c: use_table(53) 0(77704) qm_malloc(0x80c3320, 8) returns address 0x80ce9a0 frag. 0x80ce988 (size=36) on 1 -th hit 0(77704) XJAB:mod_init: Database connection opened successfuly 0(77704) XJAB:mod_init: pipe[0] = <7>-<8> 0(77704) XJAB:mod_init: pipe[1] = <9>-<10> 0(77704) XJAB:xj_wlist_init: -----START----- 0(77704) qm_malloc(0x2815d000, 32) called from xjab_wlist.c: xj_wlist_init(69) 0(77704) qm_malloc(0x2815d000, 32) returns address 0x282e5c60 frag. 0x282e5c48 (size=32) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 16) called from ../../lock_alloc.h: lock_set_alloc(69) 0(77704) qm_malloc(0x2815d000, 16) returns address 0x282e5cb0 frag. 0x282e5c98 (size=16) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 40) called from xjab_wlist.c: xj_wlist_init(92) 0(77704) qm_malloc(0x2815d000, 40) returns address 0x282e5cf0 frag. 0x282e5cd8 (size=40) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from tree234.c:
newtree234(68)
0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5d48 frag. 0x282e5d30 (size=8) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from tree234.c:
newtree234(68)
0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5d80 frag. 0x282e5d68 (size=8) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases 0(77704) qm_malloc(0x2815d000, 24) called from xjab_wlist.c: xj_wlist_set_aliases(410) 0(77704) qm_malloc(0x2815d000, 24) returns address 0x282e5db8 frag. 0x282e5da0 (size=24) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 8) called from xjab_wlist.c: xj_wlist_set_aliases(434) 0(77704) qm_malloc(0x2815d000, 8) returns address 0x282e5e00 frag. 0x282e5de8 (size=8) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 15) called from xjab_wlist.c: xj_wlist_set_aliases(442) 0(77704) qm_malloc(0x2815d000, 16) returns address 0x282e5e38 frag. 0x282e5e20 (size=16) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: jdomain=jabber.kalg.net delim=* 0(77704) qm_malloc(0x2815d000, 4) called from xjab_wlist.c: xj_wlist_set_aliases(506) 0(77704) qm_malloc(0x2815d000, 4) returns address 0x282e5e78 frag. 0x282e5e60 (size=4) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 32) called from xjab_wlist.c: xj_wlist_set_aliases(514) 0(77704) qm_malloc(0x2815d000, 32) returns address 0x282e5eac frag. 0x282e5e94 (size=32) on 1 -th hit 0(77704) qm_malloc(0x2815d000, 19) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 20) returns address 0x282e5efc frag. 0x282e5ee4 (size=20) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[1/4]=icq.jabber.kalg.net delim=X 0(77704) qm_malloc(0x2815d000, 19) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 20) returns address 0x282e5f40 frag. 0x282e5f28 (size=20) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[2/4]=msn.jabber.kalg.net delim=X 0(77704) qm_malloc(0x2815d000, 21) called from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_malloc(0x2815d000, 24) returns address 0x282e5f84 frag. 0x282e5f6c (size=24) on 1 -th hit 0(77704) XJAB:xj_wlist_set_aliases: alias[3/4]=yahoo.jabber.kalg.net delim=X 0(77704) XJAB:xj_wlist_set_aliases: bad parameter value format 0(77704) qm_free(0x2815d000, 0x282e5f84), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5f6c alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5f40), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5f28 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5efc), called from xjab_wlist.c: xj_wlist_set_aliases(557) 0(77704) qm_free: freeing frag. 0x282e5ee4 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(537) 0(77704) qm_free(0x2815d000, 0x282e5eac), called from xjab_wlist.c: xj_wlist_set_aliases(560) 0(77704) qm_free: freeing frag. 0x282e5e94 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(514) 0(77704) qm_free(0x2815d000, 0x282e5e78), called from xjab_wlist.c: xj_wlist_set_aliases(564) 0(77704) qm_free: freeing frag. 0x282e5e60 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(506) 0(77704) qm_free(0x2815d000, 0x282e5e38), called from xjab_wlist.c: xj_wlist_set_aliases(575) 0(77704) qm_free: freeing frag. 0x282e5e20 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(442) 0(77704) qm_free(0x2815d000, 0x282e5e00), called from xjab_wlist.c: xj_wlist_set_aliases(576) 0(77704) qm_free: freeing frag. 0x282e5de8 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(434) 0(77704) qm_free(0x2815d000, 0x282e5db8), called from xjab_wlist.c: xj_wlist_set_aliases(578) 0(77704) qm_free: freeing frag. 0x282e5da0 alloc'ed from xjab_wlist.c: xj_wlist_set_aliases(410) 0(77704) XJAB:mod_init: error setting aliases and outbound proxy 0(77704) init_mod(): Error while initializing module jabber ERROR: error while initializing modules 0(77704) INFO: signal 15 received 0(77704) Memory status (pkg): 0(77704) qm_status (0x80c3320): 0(77704) heap size= 1022872 0(77704) used= 7828, used+overhead=48748, free=974124 0(77704) max used (+overhead)= 48748 0(77704) dumping all allocked. fragments: 0(77704) 0. N address=0x80c9770 frag=0x80c9758 size=16 0(77704) alloc'd from fifo_server.c:
register_fifo_cmd(122)
0(77704) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
On 5/14/2003 4:55 PM, Gary Goodloff wrote:
[..] modparam("jabber","aliases","4;icq.jabber.kalg.net;msn.jabber.kalg.net;y ahoo.jabber.kalg.net;aim.jabber.kalg.net")
Each alias value must end with ';' -- it is applicable for the last one too. See the Readme file of the module.
Beast regards, Daniel
I have the jabber transport modules installed for AIM and YAHOO -- but nothing is sending -- when I check the error logs I see this:
May 14 12:15:29 lunar /usr/local/sbin/ser[28888]: ERROR: build_res_buf_from_sip_req: out of memory ; needs 6326 May 14 12:15:29 lunar /usr/local/sbin/ser[28888]: ERROR: build_res_buf_from_sip_req: out of memory ; needs 6326 May 14 12:15:29 lunar /usr/local/sbin/ser[28888]: ERROR: build_res_buf_from_sip_req: out of memory ; needs 6326
Gary Goodloff KALG Communications, LTD T: 402-898-4152 C: 402-208-5183 F: 413-294-3404
-----Original Message----- From: serusers-admin@iptel.org [mailto:serusers-admin@lists.iptel.org] On Behalf Of Daniel-Constantin Mierla Sent: Wednesday, May 14, 2003 10:12 AM To: Gary Goodloff Cc: serusers@lists.iptel.org Subject: Re: [Serusers] JABBER HELP ANYONE?
On 5/14/2003 4:55 PM, Gary Goodloff wrote:
[..] modparam("jabber","aliases","4;icq.jabber.kalg.net;msn.jabber.kalg.net;
y
ahoo.jabber.kalg.net;aim.jabber.kalg.net")
Each alias value must end with ';' -- it is applicable for the last one too. See the Readme file of the module.
Beast regards, Daniel
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Please be more specific, from where to where you try to send? The error is related to SIP reply composition and it is not especially tied to jabber gateway -- we need the SIP request involved in this operation, so please provide us some network dumps (using ngrep or ethereal) and a more detailed log (the debug messages) when this happens.
Best regards, Daniel
On 5/14/2003 7:17 PM, Gary Goodloff wrote:
I have the jabber transport modules installed for AIM and YAHOO -- but nothing is sending -- when I check the error logs I see this:
May 14 12:15:29 lunar /usr/local/sbin/ser[28888]: ERROR: build_res_buf_from_sip_req: out of memory ; needs 6326 May 14 12:15:29 lunar /usr/local/sbin/ser[28888]: ERROR: build_res_buf_from_sip_req: out of memory ; needs 6326 May 14 12:15:29 lunar /usr/local/sbin/ser[28888]: ERROR: build_res_buf_from_sip_req: out of memory ; needs 6326
Gary Goodloff KALG Communications, LTD T: 402-898-4152 C: 402-208-5183 F: 413-294-3404
-----Original Message----- From: serusers-admin@iptel.org [mailto:serusers-admin@lists.iptel.org] On Behalf Of Daniel-Constantin Mierla Sent: Wednesday, May 14, 2003 10:12 AM To: Gary Goodloff Cc: serusers@lists.iptel.org Subject: Re: [Serusers] JABBER HELP ANYONE?
On 5/14/2003 4:55 PM, Gary Goodloff wrote:
[..] modparam("jabber","aliases","4;icq.jabber.kalg.net;msn.jabber.kalg.net;
y
ahoo.jabber.kalg.net;aim.jabber.kalg.net")
Each alias value must end with ';' -- it is applicable for the last one too. See the Readme file of the module.
Beast regards, Daniel
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers