<!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.2600.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>this is the ser.cfg:</FONT></DIV>
<DIV><FONT face=Arial
size=2>//////////////////////////////////////////////////////////////////////////////////////<BR>#ser.cfg<BR></FONT><FONT
face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial
size=2>debug=4 # debug
level (cmd line:
-dddddddddd)<BR>#fork=yes
# (cmd. line: -D)<BR>fork=no<BR>log_stderror=yes # (cmd line:
-E)<BR>#log_stderror=no # (cmd line: -E)</DIV>
<DIV> </DIV>
<DIV><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>listen=sip.server.net<BR>listen=192.168.1.70<BR>fifo="/tmp/ser_fifo"<BR>#fifo="/tmp/ser_fifoql://ser:heslo@localhost/ser"</DIV>
<DIV> </DIV>
<DIV><BR># for more info: sip_router -h</DIV>
<DIV> </DIV>
<DIV># ------------------ module loading
----------------------------------</DIV>
<DIV> </DIV>
<DIV>#modules<BR>loadmodule "/usr/local/lib/ser/modules/print.so"<BR>loadmodule
"/usr/local/lib/ser/modules/textops.so"<BR>loadmodule
"/usr/local/lib/ser/modules/tm.so"</DIV>
<DIV> </DIV>
<DIV>loadmodule "/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule
"/usr/local/lib/ser/modules/sl.so"<BR>loadmodule
"/usr/local/lib/ser/modules/mysql.so"<BR>loadmodule
"/usr/local/lib/ser/modules/jabber.so"<BR>loadmodule
"/usr/local/lib/ser/modules/registrar.so"<BR>loadmodule
"/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule
"/usr/local/lib/ser/modules/pa.so"</DIV>
<DIV> </DIV>
<DIV># ----------------- setting module-specific parameters
---------------</DIV>
<DIV> </DIV>
<DIV># -- registrar params --</DIV>
<DIV> </DIV>
<DIV>modparam("registrar", "default_expires", 120)<BR>modparam("registrar",
"use_domain", 1)</DIV>
<DIV> </DIV>
<DIV># -- usrloc params --<BR>modparam("usrloc", "use_domain",
1)<BR>modparam("usrloc", "db_mode", 0)</DIV>
<DIV> </DIV>
<DIV># -- jabber params --</DIV>
<DIV> </DIV>
<DIV>modparam("jabber","db_url","mysql://jabber:jabber@127.0.0.1/sip_jab")<BR>modparam("jabber","jaddress","jabber.server.net")<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.net=*")</DIV>
<DIV> </DIV>
<DIV>route{</DIV>
<DIV> </DIV>
<DIV> #if (
!mf_process_maxfwd_header("10") )<BR>
#{<BR>
# sl_send_reply("483","To Many
Hops");<BR>
#
drop();<BR> #};</DIV>
<DIV> </DIV>
<DIV> if
(uri=~"[@:]sip\.server\.net([;:].*)*")<BR>
#if (uri=~"^sip:(<A
href="mailto:.+@)?(192\.168\.1\.70|(jabber\.)?server\.net)([:;\?].*)?$">.+@)?(192\.168\.1\.70|(jabber\.)?server\.net)([:;\?].*)?$</A>")<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("registration"))<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>
{</DIV>
<DIV> </DIV>
<DIV>
log("XJAB:methode SUBSCRIBE
\n");<BR>
if(jab_go_offline())<BR>
if
(t_newtran())<BR>
{</DIV>
<DIV> </DIV>
<DIV>
log("XJAB: subscribe
registrar\n");<BR>
#
subscribe("registrar");<BR>
handle_subscription("registrar");<BR>
};<BR>
break;<BR>
};<BR>
if(!lookup("location"))<BR>
{<BR>
sl_send_reply("404","Not
found");<BR>
break;<BR>
};<BR> };</DIV>
<DIV> </DIV>
<DIV> if
(search("To:.*@jabber\.server\.net"))</DIV>
<DIV> </DIV>
<DIV> {</DIV>
<DIV> </DIV>
<DIV> log("XJAB : search for
jabber.sofiphone.net /n");<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>
};</DIV>
<DIV> </DIV>
<DIV>
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>
};</DIV>
<DIV> </DIV>
<DIV>
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>
};</DIV>
<DIV> </DIV>
<DIV>
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>
log("subscribe jabber
/n");<BR>
#
subscribe("jabber");<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> };</DIV>
<DIV> </DIV>
<DIV> #forward(uri:host,uri:port);<BR>}</DIV>
<DIV> </DIV>
<DIV><BR></FONT> </DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 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=mmouhiha@softiphone.net href="mailto:mmouhiha@softiphone.net">mma</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=serusers@lists.iptel.org
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 06, 2005 9:20 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Serusers] pb with jabber</DIV>
<DIV><BR></DIV>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000>***********************<BR>Pas
de virus detecté dans l'attachement no filename<BR>Pas de virus detecté
dans l'attachement no filename<BR>Pas de virus detecté dans
l'attachement no filename<BR><BR>Votre Mail a été vérifié par
InterScan.<BR>***********-***********<BR><BR></FONT></TD></TR></TBODY></TABLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT face=Arial size=2>i add the following entries on the sip_jab.jusers
table</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>insert into jusers values
('','user1jabber','password','sip:user1@sip.server.net',0);<BR>insert into
jusers values
('','user2jabber','password','sip:user1@sip.server.net',0);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>i created user1jabber and user2jabber using
exodus as jabber client<BR>i created also user1 and user2 on ser whiwc is
running on 192.168.1.70 (sip.server.net)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>jabber is runninng also on the same machine
: 192.168.1.70 (jabber.server.net)<BR>jabber works fine, i have tested
it;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>DNS server : 195.167.203.168</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>i want the two users to communicate using IM
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>user1 is connecting to windows messenger : <A
href="mailto:user1@sip.server.net">user1@sip.server.net</A><BR>user2 is
connecting to exodus : <A
href="mailto:user2jabber@jabber.server.net">user2jabber@jabber.server.net</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>user1 send an IM to user2jabber using <A
href="mailto:user2jabber*jabber.org@jabber.server.net">user2jabber*jabber.org@jabber.server.net</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>the problems are :</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-user2jabber don't receive what user1
sends.<BR>-also pa modules does not work : i have no response from the server
when a SUBSCRIBE request is sent<BR>(i added user3 as a contact to user1
)</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>please i need help </DIV>
<DIV> </DIV>
<DIV>regards</DIV>
<DIV> </DIV>
<DIV><BR>/////////////////////////////////////////////////////////////////////////////////////<BR>
No. Time
Source
Destination Protocol
Info<BR> 25 12.150821
192.168.1.118
195.167.203.168
DNS Standard query A
sip.server.net<BR> 26 12.153145
195.167.203.168
192.168.1.118
DNS Standard query response A
192.168.1.70<BR> 27 12.160197
192.168.1.118
192.168.1.70
SIP Request: REGISTER
sip:sip.server.net<BR> 28 12.164436
192.168.1.70
192.168.1.118
SIP Status: 200 OK (1
bindings)<BR> 29 12.166088
192.168.1.70
192.168.1.118
SIP Status: 200 Accepted (1
bindings)<BR> 30 12.169036
192.168.1.118
192.168.1.70
SIP Request: SUBSCRIBE
sip:user3@sip.server.net<BR> 31 12.172514
192.168.1.70
192.168.1.118
SIP Status: 400 Bad
Request<BR> <BR> .....</DIV>
<DIV> </DIV>
<DIV> 171 21.841023
192.168.1.118
192.168.1.70
SIP/SDP Request: INVITE sip:user2jabber*jabber.org@jabber.server.net,
with session description<BR> 172 21.843627
192.168.1.70
192.168.1.118
SIP Status: 202 Accepted<BR>
173 21.861278
192.168.1.118
192.168.1.70
SIP Request: ACK
sip:user2jabber*jabber.org@jabber.server.net<BR> 174
21.862529
192.168.1.118
192.168.1.70
SIP Request: MESSAGE
sip:user2abber*jabber.org@jabber.server.net (text/plain)<BR>
175 21.865357
192.168.1.70
192.168.1.118
SIP Status: 200 Accepted</DIV>
<DIV> </DIV>
<DIV>.....</DIV>
<DIV> </DIV>
<DIV>297 22.446316
192.168.1.118
192.168.1.70
SIP Request: BYE
sip:user2jabber*jabber.org@jabber.server.net</FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Serusers mailing
list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<BR></BLOCKQUOTE></BODY></HTML>