Did you get any reply at all ? SER should send 401 at least. Make sure
you have something like this in your configuration file:
if (!www_authorize("", "subscriber")) {
www_challenge("", "0");
break;
};
www_challenge function sends 401 Unauthorized.
Jan.
On 05-04 15:41, Damian Bundred wrote:
Hi,
SER works fine when digest authentication is turned off, connecting a phone
and a copy of SJPhone, however when i remove the comments for auth, and
if(!(www_auten...)) ser dies whenever the one of the things try to connect
to it.
the following is recorded in ngrep
U 192.168.0.18:5060 -> 192.168.0.6:5060
REGISTER sip:192.168.0.6 SIP/2.0..Via: SIP/2.0/UDP
192.168.0.18;branch=z9hG4bKa6155d96e0772e23..From: <sip:phone_User@19
2.168.0.6>;tag=ac25e718e18ae5ea..To:
<sip:phone_User@192.168.0.6>..Contact:
<sip:phone_User@192.168.0.18>..Call-ID: 34cc
4c2e6df9395b@192.168.0.18..CSeq: 100 REGISTER..Expires: 3600..User-Agent:
Grandstream BT100 1.0.5.16..Max-Forwards: 70..
Allow:
INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE..Content-Length:
0....
#
I 192.168.0.6 -> 192.168.0.18 3:3
....E0........................}.REGISTER sip:192.168.0.6 SIP/2.0..Via:
SIP/2.0/UDP 192.168.0.18;branch=z9hG4bKa6155d96e0
772e23..From: <sip:phone_User@192.168.0.6>;tag=ac25e718e18ae5ea..To:
<sip:phone_User@192.168.0.6>..Contact: <sip:phone_U
ser@192.168.0.18>..Call-ID: 34cc4c2e6df9395b@192.168.0.18..CSeq: 100
REGISTER..Expires: 3600..User-Agent: Grandstream BT
100 1.0.5.16..Max-Forwards: 70..Allow:
INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE..Content-Length:
0....
i'm not 100% sure that i've set up the entry in the database corrently, but
surely it should simply refuse connection to the phone rather than just
dieing.
Many thanks,
Damian
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers