I don't have a log file, how to make
one?
I only have the "TRACE" of the
program.
the config file is in the back of
this mail
can you help me?
./openser -f jabber2.cfg -E
-dddddddddddddd
0(18400) read 1416823972 from
/dev/urandom
0(18400) seeding PRNG with 2570866263
0(18400)
test random number 144688908
0(18400) WARNING: fix_socket_list: could
not rev. resolve 192.168.0.4
0(18400) WARNING: fix_socket_list: could
not rev. resolve 192.168.0.4
Listening
on
udp: 127.0.0.1
[127.0.0.1]:5060
udp: 192.168.0.4
[192.168.0.4]:5060
tcp: 127.0.0.1
[127.0.0.1]:5060
tcp: 192.168.0.4
[192.168.0.4]:5060
Aliases:
tcp:
localhost:5060
udp:
localhost:5060
*: 192.168.0.4:*
textops -
initializing
0(0) Maxfwd module- initializing
stateless -
initializing
root@Histerica:~/Javier/openser-1.0.1-tls#
root@Histerica:~/Javier/openser-1.0.1-tls#
root@Histerica:~/Javier/openser-1.0.1-tls# ps
-e
PID TTY TIME
CMD
1 ? 00:00:04
init
2 ?
00:00:00 keventd
3
? 00:00:00
ksoftirqd_CPU0
4
? 00:00:00
kswapd
5 ?
00:00:00 bdflush
6
? 00:00:00 kupdated
10
? 00:00:00 mdrecoveryd
11 ? 00:00:00
kreiserfsd
35 ?
00:00:00 kapmd
62 ?
00:00:00 syslogd
65 ?
00:00:00 klogd
175 ?
00:00:00 udevd
395 ?
00:00:00 khubd
3365 ?
00:00:00 atd
3368 ? 00:00:00
apmd
3378 ? 00:00:00
gpm
3402 ? 00:00:00
mysqld_safe
3435 ? 00:00:00
mysqld
3436 ? 00:00:00
mysqld
3437 ? 00:00:00
mysqld
3438 ? 00:00:00
mysqld
3439 ? 00:00:00
mysqld
3440 ? 00:00:00
mysqld
3442 ? 00:00:00
mysqld
3443 ? 00:00:00
mysqld
3444 ? 00:00:00
mysqld
3445 ? 00:00:00
mysqld
3460 tty1 00:00:00 startx
3472
tty1 00:00:00 xinit
3473
? 00:38:18 X
3476
tty1 00:00:00 sh
3477
tty1 00:00:00 startkde
3505
? 00:00:00 kdeinit
3508
? 00:00:03 kdeinit
3510
? 00:00:00 kdeinit
3512
? 00:00:06 kdeinit
7522
pts/3 00:00:00 bash
18413 pts/4 00:00:00
ps
----- Original Message -----
Sent: Wednesday, July 26, 2006 4:55
AM
Subject: Re: [Users] jabber
This is not an error, it looks like everything is OK. Do not
care about the WARNING:... :rev. resolve. Are you sure openser is not
running??? If not, please post the RELEVANT part of the log and the respective
config part.
Samuel.
> *this is my configuration file:*
>
>
#
> # configuration for Jabber module testing
> # (sample config
file using the module with presence support)
> #
> # $ID:
daniel $
> #
>
>
debug=2 # debug level
(cmd line: -dddddddddd)
>
fork=yes # (cmd. line:
-D)
> log_stderror=yes # (cmd line: -E)
>
>
children=2
> check_via=no # (cmd. line:
-v)
>
dns=off # (cmd.
line: -r)
> rev_dns=off # (cmd.
line: -R)
> port=5060
> alias=" 192.168.0.4"
>
> #
------------------ module loading
----------------------------------
>
> #modules
>
loadmodule "modules/print/print.so"
> loadmodule
"modules/textops/textops.so"
> loadmodule "modules/tm/tm.so"
>
loadmodule "modules/maxfwd/maxfwd.so"
> loadmodule
"modules/sl/sl.so"
> loadmodule "modules/mysql/mysql.so"
>
loadmodule "modules/jabber/jabber.so"
> loadmodule
"modules/registrar/registrar.so"
> loadmodule
"modules/usrloc/usrloc.so"
> loadmodule
"modules/pa/pa.so"
>
> # ----------------- setting
module-specific parameters ---------------
>
> # -- registrar
params --
>
> modparam("registrar", "default_expires",
120)
> #modparam("registrar", "use_domain", 1)
>
> # --
usrloc params --
> #modparam("usrloc", "use_domain", 1)
>
modparam("usrloc", "db_mode", 0)
>
> # -- jabber params
--
>
> modparam("jabber","db_url","
mysql://root@127.0.0.1/sip_jab")
> modparam("jabber","jaddress","jabber.server.com
")
> modparam("jabber","jport",5222)
>
modparam("jabber","workers",2)
>
modparam("jabber","max_jobs",10)
> modparam("jabber","cache_time",200)
> modparam("jabber","delay_time",60)
>
modparam("jabber","jdomain","jabber.server.com=*")
>
modparam("jabber","aliases","4;aim.jabber.server.com;icq.jabber.server.com;msn.jabber.server.com=%;yahoo.jabber.server.com;")
>
>
> route{
>
> #if (
!mf_process_maxfwd_header("10") )
> #{
> #
sl_send_reply("483","To Many Hops");
> # drop();
>
#};
>
> if
(uri=~"[@:]sip\.server\.com([;:].*)*")
> {
> # for testing
purposes, simply okay all REGISTERs
> if (method=="REGISTER")
>
{
> if (t_newtran())
> {
> save("location");
>
log("REGISTER received -> reply okay\n");
> };
>
if(search("egistration"))
> {
> log("XJAB: Going ONline in
Jabber network!!!\n");
> if(jab_go_online())
> {
>
sl_send_reply("200", "Accepted");
> }
> else
> {
>
sl_send_reply("404","Not found");
> };
> }
> else
>
{
> log("XJAB: Going OFFline in Jabber network!!!\n");
>
if(jab_go_offline())
> {
> sl_send_reply("200",
"Accepted");
> }
> else
> {
>
sl_send_reply("404","Not found");
> };
> };
>
break;
> };
> if (method=="SUBSCRIBE")
> {
> if
(t_newtran())
> {
> handle_subscription("registrar");
>
};
> break;
> };
> if(!lookup("location"))
>
{
> sl_send_reply("404","Not found");
> break;
>
};
> };
>
> if ((search("
To:.*@icq\.jabber\.server\.com"))
>
||
(search("To:.*@jabber\.server\.com"))
>
||
(search("To:.*@msn\.jabber\.server\.com"))
>
|| (search("
To:.*@yahoo\.jabber\.server\.com")))
>
{
> if (!
t_newtran())
> {
>
sl_reply_error();
> break;
> };
>
if (method=="MESSAGE")
> {
>
log("MESSAGE received -> manage it with
XJAB\n");
> if(search("\n:on"))
>
{
> if (jab_go_online())
> {
>
sl_send_reply("200","Accepted");
>
}else{
> sl_send_reply("404","Not
found");
> };
> break;
>
};
> if(search("\n:off"))
> {
> 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;
>
};
> if (method=="SUBSCRIBE") {
> handle_subscription("jabber");
> break;
> };
> log("NON_Message
request received for JABBER
gateway->dropt!\n");
>
sl_send_reply("202","Accepted");
>
break;
> };
> if (!t_relay())
>
{
> sl_reply_error();
>
};
>
>
#forward(uri:host,uri:port);
> }
>