All,

    I've been playing with jabber module and having problems someone had  mentioned here earlier: first, the number of ser processes increases constantly . This is due to the fact that XJAB threads seem to be dying (or so waitpid() code thinks in jabber.c), and keeps spawning more threads. The proble is that ser threads are still around when that happens, contributing to a number of processes.

    Second, and most troubling, is that jabber module doesn't even try to connect to jabber server (conformed by running ngrep and tcpdump on a jabber box, which runs on a separate box). This may or may not be due to the error described above (any chance that jabber threads that are supposed to connect are not around anymore?). I even tried disabling TCP and recompiling (commented -DUSE_TCP in Makefile.def)

    The rest of ser functionality is fine. I can log in tp the server easily, mysql gets updated acorrdingly, etc.

    The setup: ser-0.8.11pre29 on Linux 2.4.9 (host name piias12), compiled with gcc 3.2.2. Jabber runs on a server "sait661".

    The jusers looks like this:

mysql>  select * from jusers;
+------+--------+------------+----------------------+------+
| juid | jab_id | jab_passwd | sip_id               | type |
+------+--------+------------+----------------------+------+
|    1 | igorb  | ***        | igorb@piias12.ms.com |    0 |
+------+--------+------------+----------------------+------+
1 row in set (0.00 sec)
 

=================== ser.conf: (Experimental; just to illustrate Jabber login) ======================================================
#
# $Id: ser.cfg,v 1.20 2003/05/31 21:12:19 jiri Exp $
#
# simple quick-start config script
#

# ----------- 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 "/var/ser/lib/ser/modules/mysql.so"

loadmodule "/var/ser/lib/ser/modules/sl.so"
loadmodule "/var/ser/lib/ser/modules/tm.so"
loadmodule "/var/ser/lib/ser/modules/rr.so"
loadmodule "/var/ser/lib/ser/modules/maxfwd.so"
loadmodule "/var/ser/lib/ser/modules/usrloc.so"
loadmodule "/var/ser/lib/ser/modules/registrar.so"

# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/var/ser/lib/ser/modules/auth.so"
loadmodule "/var/ser/lib/ser/modules/auth_db.so"

######## JABBER <-> SIMPLE
loadmodule "/var/ser/lib/ser/modules/print.so"
loadmodule "/var/ser/lib/ser/modules/textops.so"
loadmodule "/var/ser/lib/ser/modules/jabber.so"
loadmodule "/var/ser/lib/ser/modules/pa.so"

modparam("jabber","db_url","sql://ser:heslo@127.0.0.1/sip_jab")
modparam("jabber","jaddress","sait661.ms.com")
modparam("jabber","jport",5222)
modparam("jabber","workers",2)
modparam("jabber","max_jobs",2)
modparam("jabber","aliases","1;yahoo.sait661;")
modparam("jabber","jdomain","sait661")
modparam("jabber","delay_time",5)
modparam("jabber","cache_time",200)
modparam("jabber","sleep_time",60)
modparam("jabber","check_time",60)
################
# ----------------- 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_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")

# -------------------------  request routing logic -------------------
alias="ms.com"
alias="piias12.ms.com"

# main routing logic

route{

        # 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
        if (loose_route()) {
                t_relay();
                break;
        };

        # 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==myself) {

                if (method=="REGISTER") {

                   if (!www_authorize("piias12.ms.com", "subscriber")) {
                        www_challenge("piias12.ms.com", "0");
                        break;
                   };

                save("location");

                   log (1, "Are we registering?");
                   if(search("egistration")) {

                     log (1, "XJAB: Going ONline in Jabber network!!!\n");

                     if (jab_go_online()) {
                       sl_send_reply("200", "Accepted");
                     }
                     else {
                       sl_send_reply("404","Not found");
                     };
                   };

                   break;
                };
 

                # native SIP destinations are handled using our USRLOC DB
                if (!lookup("location")) {
                        sl_send_reply("404", "Not Found");
                        break;
                };
        };
        # 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();
        };

}

========== Relevant portions of daemon.log ===============================================================
Jul  9 15:20:11 piias12 ./ser[23832]: XJAB:xjab_check_workers: worker[0][pid=23965] has exited - status=0 err=-1 errno=10
Jul  9 15:20:11 piias12 ./ser[23832]: XJAB:xjab_check_workers: worker[1][pid=23966] has exited - status=0 err=-1 errno=10
Jul  9 15:20:11 piias12 ./ser[23851]: XJAB:xjab_check_workers: worker[0][pid=23975] has exited - status=0 err=-1 errno=10
Jul  9 15:20:11 piias12 ./ser[23851]: XJAB:xjab_check_workers: worker[1][pid=23976] has exited - status=0 err=-1 errno=10
Jul  9 15:20:51 piias12 ./ser[23829]: Are we registering?
Jul  9 15:20:51 piias12 ./ser[23829]: XJAB: Going ONline in Jabber network!!!
Jul  9 15:21:11 piias12 ./ser[23832]: XJAB:xjab_check_workers: worker[0][pid=23977] has exited - status=0 err=-1 errno=10
 
 
 

-- 
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited.