<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Tahoma color=#0000ff size=2>
<DIV><FONT face=Tahoma color=#0000ff size=2>friends:</FONT><BR><FONT face=Tahoma
color=#0000ff size=2>I looking for this error, I add in module/jabber/jabber.c
file in mod_init funtion 2 trace to view where is the error.</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2>please look in the trace, I show the
error.</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2><STRONG>please help
me</STRONG><BR></DIV></FONT>
<DIV><FONT face=Tahoma color=#0000ff size=2>for(i=0; i<nrw;
i++)<BR>{<BR>LOG(L_ERR, "XJAB trace 1 to debug error \n");<BR>db_con[i] =
jabber_dbf.init(db_url);<BR>LOG(L_ERR, "XJAB trace 2 to debug error \n");<BR>if
(!db_con[i])<BR> {<BR> LOG(L_ERR,
"XJAB:mod_init: Error while connecting database\n");<BR>
return -1;<BR>}<BR>else<BR>{<BR> if
(jabber_dbf.use_table(db_con[i], db_table) < 0) {<BR>
LOG(L_ERR, "XJAB:mod_init: Error in use_table\n");<BR> return
-1;<BR>}<BR>DBG("XJAB:mod_init: Database connection opened
successfully\n");<BR>}<BR>}<BR><BR>and run the program with -f ser.jabber
-E -dddddddddddddd options<BR>0(9857) read 3400580695 from
/dev/urandom<BR>0(9857) seeding PRNG with 259723670<BR>0(9857) test random
number 1984477284<BR>0(9857) WARNING: fix_socket_list: could not rev. resolve
192.168.0.4<BR>0(9857) WARNING: fix_socket_list: could not rev. resolve
192.168.0.4<BR>Listening on<BR>udp: 127.0.0.1 [127.0.0.1]:5060<BR>udp:
192.168.0.4 [192.168.0.4]:5060<BR>tcp: 127.0.0.1 [127.0.0.1]:5060<BR>tcp:
192.168.0.4 [192.168.0.4]:5060<BR>Aliases:<BR>tcp: localhost:5060<BR>udp:
localhost:5060<BR>*: 192.168.0.4:*<BR>WARNING: no fork mode and more than one
listen address found(will use only the the first one)<BR>0(9857) init_tcp: using
sigio_rt as the io watch method (auto detected)<BR>0(9857) Se inicializo
init_tmcb_lists<BR>0(9857) Presence Agent - initializing<BR>0(9857) ... common
libraries<BR>0(9857) cds_initialize(): init the content<BR>0(9857)
qsa_initialize(): init the content<BR>print - initializing<BR>textops -
initializing<BR>0(9857) Maxfwd module- initializing<BR>stateless -
initializing<BR>0(9857) XJAB:mod_init: initializing ...<BR><STRONG>0(9857)XJAB
trace 1 to debug error<BR>0(9857) XJAB trace 2 to debug
error</STRONG><BR>0(9857) XJAB:mod_init: Database connection opened
successfully<BR><STRONG>0(9857) XJAB trace 1 to debug
error</STRONG><BR><STRONG>Segmentation fault (core
dumped)</STRONG></FONT></DIV></FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Tahoma color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=andrey.kouprianov@gmail.com
href="mailto:andrey.kouprianov@gmail.com">Andrey Kouprianov</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=serusers@iptel.org
href="mailto:serusers@iptel.org">serusers@iptel.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 28, 2006 12:40
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Serusers] jabber</DIV>
<DIV><BR></DIV>Hi,<BR><BR>Not sure if it's gonna work, but if you want to
start ser in debugging<BR>mode, then set fork=no (as opposed to your
fork=yes).<BR><BR> Andrey.<BR><BR>On 7/28/06, Javier Ramirez <<A
href="mailto:jvr_78@yahoo.com.ar">jvr_78@yahoo.com.ar</A>>
wrote:<BR>><BR>> why die the ser ?<BR>> what is wrong ?<BR>> I add
this:<BR>> in /etc/host<BR>> 127.0.0.1 aim.jabber.server.com<BR>>
127.0.0.1 msn.jabber.server.com<BR>> 127.0.0.1
icq.jabber.server.com<BR>> 127.0.0.1 yahoo.jabber.server.com<BR>>
127.0.0.1 jabber.server.com<BR>> 127.0.0.1 server.com<BR>> and
run:<BR>> ser -f jabber2.cfg -E -dddddddddddddddd<BR>><BR>>
0(4710) read 193612823 from /dev/urandom<BR>> 0(4710) seeding PRNG
with 1347370384<BR>> 0(4710) test random number
149130666<BR>> 0(4710) WARNING: fix_socket_list: could not rev.
resolve 192.168.0.4<BR>> 0(4710) WARNING: fix_socket_list: could not
rev. resolve 192.168.0.4<BR>> Listening
on<BR>>
udp: 127.0.0.1
[127.0.0.1]:5060<BR>>
udp: 192.168.0.4
[192.168.0.4]:5060<BR>>
tcp: 127.0.0.1
[127.0.0.1]:5060<BR>>
tcp: 192.168.0.4 [192.168.0.4]:5060<BR>>
Aliases:<BR>>
tcp:
localhost:5060<BR>>
udp:
localhost:5060<BR>>
*: 192.168.0.4:*<BR>><BR>> print - initializing<BR>> textops -
initializing<BR>> stateless - initializing<BR>><BR>> and ser
die.....<BR>><BR>> this is my configuration file:<BR>><BR>>
#<BR>> # configuration for Jabber module testing<BR>> # (sample config
file using the module with presence support)<BR>> #<BR>> # $ID: daniel
$<BR>> #<BR>><BR>>
debug=2 # debug level
(cmd line: -dddddddddd)<BR>>
fork=yes # (cmd. line:
-D)<BR>> log_stderror=yes # (cmd line: -E)<BR>><BR>>
children=2<BR>> check_via=no # (cmd. line:
-v)<BR>>
dns=off # (cmd.
line: -r)<BR>> rev_dns=off # (cmd.
line: -R)<BR>> port=5060<BR>> alias="192.168.0.4"<BR>><BR>> #
------------------ module loading<BR>>
----------------------------------<BR>><BR>> #modules<BR>> loadmodule
"modules/print/print.so"<BR>> loadmodule
"modules/textops/textops.so"<BR>> loadmodule "modules/tm/tm.so"<BR>>
loadmodule "modules/maxfwd/maxfwd.so"<BR>> loadmodule
"modules/sl/sl.so"<BR>> loadmodule "modules/mysql/mysql.so"<BR>>
loadmodule "modules/jabber/jabber.so"<BR>> loadmodule
"modules/registrar/registrar.so"<BR>> loadmodule
"modules/usrloc/usrloc.so"<BR>> loadmodule
"modules/pa/pa.so"<BR>><BR>> # ----------------- setting module-specific
parameters ---------------<BR>><BR>> # -- registrar params
--<BR>><BR>> modparam("registrar", "default_expires", 120)<BR>>
#modparam("registrar", "use_domain", 1)<BR>><BR>> # -- usrloc params
--<BR>> #modparam("usrloc", "use_domain", 1)<BR>> modparam("usrloc",
"db_mode", 0)<BR>><BR>> # -- jabber params --<BR>><BR>>
modparam("jabber","db_url","mysql://root@127.0.0.1/sip_jab")<BR>>
modparam("jabber","jaddress","jabber.server.com")<BR>>
modparam("jabber","jport",5222)<BR>> modparam("jabber","workers",2)<BR>>
modparam("jabber","max_jobs",10)<BR>>
modparam("jabber","cache_time",200)<BR>>
modparam("jabber","delay_time",60)<BR>>
modparam("jabber","jdomain","jabber.server.com=*")<BR>>
modparam("jabber","aliases","4;aim.jabber.server.com;icq.jabber.server.com;msn.jabber.server.com=%;yahoo.jabber.server.com;")<BR>><BR>><BR>>
route{<BR>><BR>> #if ( !mf_process_maxfwd_header("10") )<BR>>
#{<BR>> # sl_send_reply("483","To Many Hops");<BR>> # drop();<BR>>
#};<BR>><BR>> if (uri=~"[@:]sip\.server\.com([;:].*)*")<BR>>
{<BR>> # for testing purposes, simply okay all REGISTERs<BR>> if
(method=="REGISTER")<BR>> {<BR>> if (t_newtran())<BR>> {<BR>>
save("location");<BR>> log("REGISTER received -> reply okay\n");<BR>>
};<BR>> if(search("egistration"))<BR>> {<BR>> log("XJAB: Going ONline
in Jabber network!!!\n");<BR>> if(jab_go_online())<BR>> {<BR>>
sl_send_reply("200", "Accepted");<BR>> }<BR>> else<BR>> {<BR>>
sl_send_reply("404","Not found");<BR>> };<BR>> }<BR>> else<BR>>
{<BR>> log("XJAB: Going OFFline in Jabber network!!!\n");<BR>>
if(jab_go_offline())<BR>> {<BR>> sl_send_reply("200",
"Accepted");<BR>> }<BR>> else<BR>> {<BR>> sl_send_reply("404","Not
found");<BR>> };<BR>> };<BR>> break;<BR>> };<BR>> if
(method=="SUBSCRIBE")<BR>> {<BR>> if (t_newtran())<BR>> {<BR>>
handle_subscription("registrar");<BR>> };<BR>> break;<BR>> };<BR>>
if(!lookup("location"))<BR>> {<BR>> sl_send_reply("404","Not
found");<BR>> break;<BR>> };<BR>> };<BR>><BR>> if
((search("To:.*@icq\.jabber\.server\.com"))<BR>>
||
(search("To:.*@jabber\.server\.com"))<BR>>
||
(search("To:.*@msn\.jabber\.server\.com"))<BR>>
||
(search("To:.*@yahoo\.jabber\.server\.com")))<BR>>
{<BR>> if (!
t_newtran())<BR>> {<BR>>
sl_reply_error();<BR>> break;<BR>> };<BR>> if
(method=="MESSAGE")<BR>> {<BR>> log("MESSAGE
received -> manage it with XJAB\n");<BR>>
if(search("\n:on"))<BR>> {<BR>> if
(jab_go_online())<BR>> {<BR>>
sl_send_reply("200","Accepted");<BR>>
}else{<BR>> sl_send_reply("404","Not
found");<BR>> };<BR>> break;<BR>>
};<BR>> if(search("\n:off"))<BR>> {<BR>> if
(jab_go_offline())<BR>> {<BR>>
sl_send_reply("200","Accepted");<BR>>
}else{<BR>> sl_send_reply("404","Not
found");<BR>> };<BR>> break;<BR>>
};<BR>><BR>> if(search("\n:join"))<BR>>
{<BR>> if (jab_join_jconf())<BR>> {<BR>>
sl_send_reply("200","Accepted");<BR>>
}else{<BR>> sl_send_reply("404","Not
Found");<BR>> };<BR>> break;<BR>>
};<BR>><BR>> if(search("\n:exit"))<BR>> {<BR>> if
(jab_exit_jconf())<BR>> {<BR>>
sl_send_reply("200","Accepted");<BR>>
}else{<BR>> sl_send_reply("404","Not
Found");<BR>> };<BR>> break;<BR>>
};<BR>><BR>> if (jab_send_message())<BR>>
{<BR>> sl_send_reply("200","Accepted");<BR>>
}else{<BR>> sl_send_reply("503","Service
Unavailable");<BR>> };<BR>> break;<BR>>
};<BR>> if (method=="SUBSCRIBE") {<BR>>
handle_subscription("jabber");<BR>> break;<BR>>
};<BR>> log("NON_Message request received for
JABBER gateway->dropt!\n");<BR>>
sl_send_reply("202","Accepted");<BR>>
break;<BR>> };<BR>> if (!t_relay())<BR>>
{<BR>> sl_reply_error();<BR>> };<BR>><BR>>
#forward(uri:host,uri:port);<BR>> }<BR>><BR>><BR>>
________________________________<BR>><BR>><BR>><BR>><BR>><BR>>
_______________________________________________<BR>> Serusers mailing
list<BR>> <A
href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</A><BR>> <A
href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</A><BR>><BR>><BR>><BR>_______________________________________________<BR>Serusers
mailing list<BR><A
href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</A><BR><A
href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</A></BLOCKQUOTE></BODY></HTML>