Hello all, Our customer wants to use Windows messenger for his staff. We don't want to use Microsoft server so we decided to try SER. I have installed SER 0.8.12 from deb package on Linux (Debian Woody 2.4.18). But I'm SER beginner and I'm not able to login to server with Windows Messenger 5.0 I always got timeout at the end. Here is start and the end of dump from ngrep.
# U 10.1.22.235:1655 -> 10.1.22.237:5060 REGISTER sip:email.cz SIP/2.0..Via: SIP/2.0/UDP 10.1.22.235:9868..Max-Forwa rds: 70..From: sip:msy@email.cz;tag=cef1e2e367de4afe826adbda2eff8952;epid =be8270f04c..To: sip:msy@email.cz..Call-ID: a73f0f8743274cb09fe02d0a4cfee 6a0@10.1.22.235..CSeq: 1 REGISTER..Contact: sip:10.1.22.235:9868;methods= "INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER "..User-Agent: RTC/1.2.4949 (Messenger 5.0.0468)..Event: registration..Allo w-Events: presence..Content-Length: 0.... # U 10.1.22.237:5060 -> 62.168.57.98:5060 REGISTER sip:email.cz SIP/2.0..Record-Route: <sip:10.1.22.237;ftag=cef1e2e3 67de4afe826adbda2eff8952;lr=on>..Via: SIP/2.0/UDP 10.1.22.237;branch=z9hG4b Ka645.750257f2.0..Via: SIP/2.0/UDP 10.1.22.235:9868..Max-Forwards: 69..From : sip:msy@email.cz;tag=cef1e2e367de4afe826adbda2eff8952;epid=be8270f04c.. To: sip:msy@email.cz..Call-ID: a73f0f8743274cb09fe02d0a4cfee6a0@10.1.22.2 35..CSeq: 1 REGISTER..Contact: sip:10.1.22.235:9868;methods="INVITE, MESS AGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER"..User-Agent : RTC/1.2.4949 (Messenger 5.0.0468)..Event: registration..Allow-Events: pre sence..Content-Length: 0.... # . . . .
U 10.1.22.235:1655 -> 10.1.22.237:5060 REGISTER sip:email.cz SIP/2.0..Via: SIP/2.0/UDP 10.1.22.235:9868..Max-Forwa rds: 70..From: sip:msy@email.cz;tag=cef1e2e367de4afe826adbda2eff8952;epid =be8270f04c..To: sip:msy@email.cz..Call-ID: a73f0f8743274cb09fe02d0a4cfee 6a0@10.1.22.235..CSeq: 1 REGISTER..Contact: sip:10.1.22.235:9868;methods= "INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER "..User-Agent: RTC/1.2.4949 (Messenger 5.0.0468)..Event: registration..Allo w-Events: presence..Content-Length: 0.... # U 10.1.22.237:5060 -> 10.1.22.235:9868 SIP/2.0 408 Request Timeout..Via: SIP/2.0/UDP 10.1.22.235:9868..From: <sip: msy@email.cz>;tag=cef1e2e367de4afe826adbda2eff8952;epid=be8270f04c..To: <si p:msy@email.cz>;tag=f70086115dfc0ccbb87e970f7d6e0b55-02c3..Call-ID: a73f0f8 743274cb09fe02d0a4cfee6a0@10.1.22.235..CSeq: 1 REGISTER..Server: Sip EXpres s router (0.8.12 (i386/linux))..Content-Length: 0..Warning: 392 10.1.22.237 :5060 "Noisy feedback tells: pid=10782 req_src_ip=10.1.22.235 req_src_port =1655 in_uri=sip:email.cz out_uri=sip:email.cz via_cnt==0".... exit
Here is my ser.cfg file (configured according to SER HOWTO) ----------------------------------------------------------- debug=3 fork=no log_stderror=yes
listen=10.1.22.237 listen=127.0.0.1
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
# ------------------ module loading ---------------------------------- loadmodule "/usr/lib/ser/modules/mysql.so" loadmodule "/usr/lib/ser/modules/sl.so" loadmodule "/usr/lib/ser/modules/tm.so" loadmodule "/usr/lib/ser/modules/rr.so" loadmodule "/usr/lib/ser/modules/maxfwd.so" loadmodule "/usr/lib/ser/modules/usrloc.so" loadmodule "/usr/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication # mysql.so must be loaded ! loadmodule "/usr/lib/ser/modules/auth.so" loadmodule "/usr/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters --------------- modparam("usrloc", "db_mode", 2) modparam("auth_db", "calculate_ha1", yes) modparam("auth_db", "password_column", "password") modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; };
record_route(); # loose-route processing if (loose_route()) { t_relay(); break; };
if (uri=~"10.1.22.237") {
if (method=="REGISTER") { if (!www_authorize("10.1.22.237", "subscriber")) { www_challenge("10.1.22.237", "0"); break; };
save("location"); break; };
# native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
if (!t_relay()) { sl_reply_error(); };
}
-----------------------------------------------------------
I have read in this mailing list about problems with Windows messenger 5.0 but I hope that login to server should be possible. Can someone give me any simple example how to configure SER for Win messenger client? I would like try older Windows Messanger version but I'm not able to find it on the web.
Thanks
Mirek
________________________________________________________________________________ Objevte kouzlo digitální fotografie s fotoaparáty Hewlett-Packard. V Albico internetovém obchodu Vás čeká dobrý nákup! http://www.email.cz/aio
First of all, replace if (uri=~"10.1.22.237") with if (uri==myself). Because the server is using a private IP, you have to add some aliases to domains that will be used. In this case put alias="email.cz" into the configuration file. That ensures that if (uri==myself) matches the IP of the server (10.1.22.237) and domain email.cz.
If you plan to use digest authentication than make sure that the digest realm (the first parameter of www_authenticate and www_authorize) is your domain -- email.cz in this case. Windows messenger will not authenticate otherwise.
Jan.
On 10-02 20:21, Miroslav Sycha wrote:
Hello all, Our customer wants to use Windows messenger for his staff. We don't want to use Microsoft server so we decided to try SER. I have installed SER 0.8.12 from deb package on Linux (Debian Woody 2.4.18). But I'm SER beginner and I'm not able to login to server with Windows Messenger 5.0 I always got timeout at the end. Here is start and the end of dump from ngrep.
# U 10.1.22.235:1655 -> 10.1.22.237:5060 REGISTER sip:email.cz SIP/2.0..Via: SIP/2.0/UDP 10.1.22.235:9868..Max-Forwa rds: 70..From: sip:msy@email.cz;tag=cef1e2e367de4afe826adbda2eff8952;epid =be8270f04c..To: sip:msy@email.cz..Call-ID: a73f0f8743274cb09fe02d0a4cfee 6a0@10.1.22.235..CSeq: 1 REGISTER..Contact: sip:10.1.22.235:9868;methods= "INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER "..User-Agent: RTC/1.2.4949 (Messenger 5.0.0468)..Event: registration..Allo w-Events: presence..Content-Length: 0.... # U 10.1.22.237:5060 -> 62.168.57.98:5060 REGISTER sip:email.cz SIP/2.0..Record-Route: <sip:10.1.22.237;ftag=cef1e2e3 67de4afe826adbda2eff8952;lr=on>..Via: SIP/2.0/UDP 10.1.22.237;branch=z9hG4b Ka645.750257f2.0..Via: SIP/2.0/UDP 10.1.22.235:9868..Max-Forwards: 69..From : sip:msy@email.cz;tag=cef1e2e367de4afe826adbda2eff8952;epid=be8270f04c.. To: sip:msy@email.cz..Call-ID: a73f0f8743274cb09fe02d0a4cfee6a0@10.1.22.2 35..CSeq: 1 REGISTER..Contact: sip:10.1.22.235:9868;methods="INVITE, MESS AGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER"..User-Agent : RTC/1.2.4949 (Messenger 5.0.0468)..Event: registration..Allow-Events: pre sence..Content-Length: 0.... # . . . .
U 10.1.22.235:1655 -> 10.1.22.237:5060 REGISTER sip:email.cz SIP/2.0..Via: SIP/2.0/UDP 10.1.22.235:9868..Max-Forwa rds: 70..From: sip:msy@email.cz;tag=cef1e2e367de4afe826adbda2eff8952;epid =be8270f04c..To: sip:msy@email.cz..Call-ID: a73f0f8743274cb09fe02d0a4cfee 6a0@10.1.22.235..CSeq: 1 REGISTER..Contact: sip:10.1.22.235:9868;methods= "INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER "..User-Agent: RTC/1.2.4949 (Messenger 5.0.0468)..Event: registration..Allo w-Events: presence..Content-Length: 0.... # U 10.1.22.237:5060 -> 10.1.22.235:9868 SIP/2.0 408 Request Timeout..Via: SIP/2.0/UDP 10.1.22.235:9868..From: <sip: msy@email.cz>;tag=cef1e2e367de4afe826adbda2eff8952;epid=be8270f04c..To: <si p:msy@email.cz>;tag=f70086115dfc0ccbb87e970f7d6e0b55-02c3..Call-ID: a73f0f8 743274cb09fe02d0a4cfee6a0@10.1.22.235..CSeq: 1 REGISTER..Server: Sip EXpres s router (0.8.12 (i386/linux))..Content-Length: 0..Warning: 392 10.1.22.237 :5060 "Noisy feedback tells: pid=10782 req_src_ip=10.1.22.235 req_src_port =1655 in_uri=sip:email.cz out_uri=sip:email.cz via_cnt==0".... exit
Here is my ser.cfg file (configured according to SER HOWTO)
debug=3 fork=no log_stderror=yes
listen=10.1.22.237 listen=127.0.0.1
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
# ------------------ module loading ---------------------------------- loadmodule "/usr/lib/ser/modules/mysql.so" loadmodule "/usr/lib/ser/modules/sl.so" loadmodule "/usr/lib/ser/modules/tm.so" loadmodule "/usr/lib/ser/modules/rr.so" loadmodule "/usr/lib/ser/modules/maxfwd.so" loadmodule "/usr/lib/ser/modules/usrloc.so" loadmodule "/usr/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication # mysql.so must be loaded ! loadmodule "/usr/lib/ser/modules/auth.so" loadmodule "/usr/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters --------------- modparam("usrloc", "db_mode", 2) modparam("auth_db", "calculate_ha1", yes) modparam("auth_db", "password_column", "password") modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; };
record_route(); # loose-route processing if (loose_route()) { t_relay(); break; };
if (uri=~"10.1.22.237") {
if (method=="REGISTER") { if (!www_authorize("10.1.22.237", "subscriber")) { www_challenge("10.1.22.237", "0"); break; }; save("location"); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
if (!t_relay()) { sl_reply_error(); };
}
I have read in this mailing list about problems with Windows messenger 5.0 but I hope that login to server should be possible. Can someone give me any simple example how to configure SER for Win messenger client? I would like try older Windows Messanger version but I'm not able to find it on the web.
Thanks
Mirek
Objevte kouzlo digitální fotografie s fotoaparáty Hewlett-Packard. V Albico internetovém obchodu Vás čeká dobrý nákup! http://www.email.cz/aio
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
On Feb 10, 2004 at 20:21, Miroslav Sycha msy@email.cz wrote:
Hello all, Our customer wants to use Windows messenger for his staff. We don't want to use Microsoft server so we decided to try SER. I have installed SER 0.8.12 from deb package on Linux (Debian Woody 2.4.18). But I'm SER beginner and I'm not able to login to server with Windows Messenger 5.0 I always got timeout at the end. Here is start and the end of dump from ngrep.
# U 10.1.22.235:1655 -> 10.1.22.237:5060 REGISTER sip:email.cz SIP/2.0..Via: SIP/2.0/UDP 10.1.22.235:9868..Max-Forwa rds: 70..From: sip:msy@email.cz;tag=cef1e2e367de4afe826adbda2eff8952;epid =be8270f04c..To: sip:msy@email.cz..Call-ID: a73f0f8743274cb09fe02d0a4cfee 6a0@10.1.22.235..CSeq: 1 REGISTER..Contact: sip:10.1.22.235:9868;methods= "INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, ACK, REFER "..User-Agent: RTC/1.2.4949 (Messenger 5.0.0468)..Event: registration..Allo w-Events: presence..Content-Length: 0....
Your register uri is email.cz, but you test only for the ip (10.1.22.237) in your ser.cfg. ser thinks the request is not for it, resolves email.cz and sends it to 62.168.57.98:5060 which seems to drop it.
Use if (uri==myself) instead of if(uri~=10.1 ...) in ser.cfg and add alias=email.cz at the beginning of the config. You might also want to add a DNS SRV record for _sip._udp.email.cz pointing at 10.1.22.237 to your internal DNS server.
Andrei