this is the ser.cfg:
//////////////////////////////////////////////////////////////////////////////////////
#ser.cfg
debug=4 # debug level (cmd line: -dddddddddd)
#fork=yes # (cmd. line: -D)
fork=no
log_stderror=yes # (cmd line: -E)
#log_stderror=no # (cmd line: -E)
children=2
check_via=no # (cmd. line: -v)
dns=off # (cmd. line: -r)
rev_dns=off # (cmd. line: -R)
port=5060
listen=sip.server.net
listen=192.168.1.70
fifo="/tmp/ser_fifo"
#fifo="/tmp/ser_fifoql://ser:heslo@localhost/ser"
# for more info: sip_router -h
# ------------------ module loading ----------------------------------
#modules
loadmodule "/usr/local/lib/ser/modules/print.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/jabber.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/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://jabber:jabber@127.0.0.1/sip_jab")
modparam("jabber","jaddress","jabber.server.net")
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.net=*")
route{
#if ( !mf_process_maxfwd_header("10") )
#{
# sl_send_reply("483","To Many Hops");
# drop();
#};
if (uri=~"[@:]sip\.server\.net([;:].*)*")
#if
(uri=~"^sip:(.+@)?(192\.168\.1\.70|(jabber\.)?server\.net)([:;\?].*)?$")
{
# for testing purposes, simply okay all REGISTERs
if (method=="REGISTER")
{
if (t_newtran())
{
save("location");
log("REGISTER received -> reply okay\n");
};
if(search("registration"))
{
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")
{
log("XJAB:methode SUBSCRIBE \n");
if(jab_go_offline())
if (t_newtran())
{
log("XJAB: subscribe registrar\n");
# subscribe("registrar");
handle_subscription("registrar");
};
break;
};
if(!lookup("location"))
{
sl_send_reply("404","Not found");
break;
};
};
if (search("To:.*@jabber\.server\.net"))
{
log("XJAB : search for
jabber.sofiphone.net /n");
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") {
log("subscribe jabber /n");
# subscribe("jabber");
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);
}
----- Original Message -----
From: mma
To: serusers(a)lists.iptel.org
Sent: Monday, June 06, 2005 9:20 AM
Subject: [Serusers] pb with jabber
***********************
Pas de virus detecté dans l'attachement no filename
Pas de virus detecté dans l'attachement no filename
Pas de virus detecté dans l'attachement no filename
Votre Mail a été vérifié par InterScan.
***********-***********
i add the following entries on the sip_jab.jusers table
insert into jusers values
('','user1jabber','password','sip:user1@sip.server.net',0);
insert into jusers values
('','user2jabber','password','sip:user1@sip.server.net',0);
i created user1jabber and user2jabber using exodus as jabber client
i created also user1 and user2 on ser whiwc is running on 192.168.1.70 (
sip.server.net)
jabber is runninng also on the same machine : 192.168.1.70 (
jabber.server.net)
jabber works fine, i have tested it;
DNS server : 195.167.203.168
i want the two users to communicate using IM
user1 is connecting to windows messenger : user1(a)sip.server.net
user2 is connecting to exodus : user2jabber(a)jabber.server.net
user1 send an IM to user2jabber using user2jabber*jabber.org(a)jabber.server.net
the problems are :
-user2jabber don't receive what user1 sends.
-also pa modules does not work : i have no response from the server when a SUBSCRIBE
request is sent
(i added user3 as a contact to user1 )
please i need help
regards
/////////////////////////////////////////////////////////////////////////////////////
No. Time Source Destination Protocol Info
25 12.150821 192.168.1.118 195.167.203.168 DNS Standard query
A
sip.server.net
26 12.153145 195.167.203.168 192.168.1.118 DNS Standard query
response A 192.168.1.70
27 12.160197 192.168.1.118 192.168.1.70 SIP Request:
REGISTER
sip:sip.server.net
28 12.164436 192.168.1.70 192.168.1.118 SIP Status: 200 OK
(1 bindings)
29 12.166088 192.168.1.70 192.168.1.118 SIP Status: 200
Accepted (1 bindings)
30 12.169036 192.168.1.118 192.168.1.70 SIP Request:
SUBSCRIBE sip:user3@sip.server.net
31 12.172514 192.168.1.70 192.168.1.118 SIP Status: 400 Bad
Request
.....
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
172 21.843627 192.168.1.70 192.168.1.118 SIP Status: 202
Accepted
173 21.861278 192.168.1.118 192.168.1.70 SIP Request: ACK
sip:user2jabber*jabber.org@jabber.server.net
174 21.862529 192.168.1.118 192.168.1.70 SIP Request:
MESSAGE sip:user2abber*jabber.org@jabber.server.net (text/plain)
175 21.865357 192.168.1.70 192.168.1.118 SIP Status: 200
Accepted
.....
297 22.446316 192.168.1.118 192.168.1.70 SIP Request: BYE
sip:user2jabber*jabber.org@jabber.server.net
------------------------------------------------------------------------------
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers