Yet another question.
I'm trying to get Windows Messenger to register with
my ser, but I can't get it to work.
Here are my configurations:
export SIP_DOMAIN="mydomain.com"
[Selected portions of ser.cfg]
alias="demoSIP.mydomain.com"
#---module loading---
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest
authentication
if
(!www_authorize("mydomain.com", "subscriber")) {
www_challenge("mydomain.com", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled
using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not
Found");
break;
};
};
When I run ngrep -n 5060 -d eth0 myAccount I get the
following:
U WindowsMessengerIP:1061 -> mySERip:5060
REGISTER
sip:demoSIP.mydomain.com SIP/2.0..Via:
SIP/2.0/UDP mySERip:6946..
From:
<sip:myAccount@demoSIP.mydomain.com>;tag=57bd73f9-1d75-4da2-a0d4
-d3ed0acb4da3..To:
<sip:myAccount@demoSIP.mydomain.com>..Call-ID:
ec1d143e-
26a9-4144-9b6f-58af38b522f7@67.70.231.221..CSeq: 1
REGISTER..Contact: <sip:
67.70.231.221:6946>;methods="INVITE, MESSAGE, INFO,
SUBSCRIBE, OPTIONS, BYE
, CANCEL, NOTIFY, ACK"..User-Agent: Windows
RTC/1.0..Expires: 1200..Event:
registration..Allow-Events:
presence..Content-Length: 0....
#
U mySERip:5060 -> WindowsMessengerIP:6946
SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP
WindowsMessengerIP:6946..
From:<sip:myAccount@demoSIP.mydomain.com>;tag=57bd73f9-1d75-4da2-a0d4-d3ed0acb4da3
To:
<sip:myAccount@demoSIP.mydomain.com>;tag=b27e1a1d33761e85846fc98f5f3a7e58
.c1f1..Call-ID:
ec1d143e-26a9-4144-9b6f-58af38b522f7@67.70.231.221..CSeq:
1
REGISTER..WWW-Authenticate: Digest
realm="mydomain.com", nonce="3fe0b9858a
bc49c954578b998d4b1f709a6160f6"..Server: Sip EXpress
router (0.8.12 (i386/l
inux))..Content-Length: 0..Warning: 392 mySERip:5060
"Noisy feedback
tells: pid=3495 req_src_ip=67.70.231.221
req_src_port=1061
in_uri=sip:demoSIP.mydomain.com
out_uri=sip:demoSIP.mydomain.com via_cnt==1"....
Does anybody know why the communication stops after
the first 401?
Any help is appreciated.
Thank you for your time.
=====
Asterisk is my lover, and IAX2 is our scented lubricant
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/