<!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>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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>
(192.168.1.118)<BR>user2 is connecting to exodus : <A
href="mailto:user2jabber@jabber.server.net">user2jabber@jabber.server.net</A>
(192.168.1.127)</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 response 'bad request' 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>log
using ethereal:</DIV>
<DIV> </DIV>
<DIV> 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 </DIV>
<DIV> </DIV>
<DIV>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 </DIV>
<DIV> </DIV>
<DIV>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 </DIV>
<DIV> </DIV>
<DIV>sip:user2jabber*jabber.org@jabber.server.net<BR> 174
21.862529
192.168.1.118
192.168.1.70
SIP Request: MESSAGE </DIV>
<DIV> </DIV>
<DIV>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 </DIV>
<DIV> </DIV>
<DIV>sip:user2jabber*jabber.org@jabber.server.net</DIV>
<DIV> </DIV>
<DIV>//////////////////////////////////////////////////////////////////////////////////////<BR>ser.cfg<BR>*****************</DIV>
<DIV> </DIV>
<DIV><BR>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> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>/////////////////////////////////////////////////////////////////////////////////////<BR></FONT></DIV></BODY></HTML>