[Serusers] digest authentication problems

Greger V. Teigre greger at teigre.com
Wed Apr 6 07:49:40 CEST 2005


Looks like you forward the REGISTER back to the UA. SER should send a:
SIP/2.0 401 Unauthorized with digest info
and then the REGISTER should be sent again with credentials.
I suggest you post your REGISTER handling from ser.cfg.
g-)

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 at 19
>  2.168.0.6>;tag=ac25e718e18ae5ea..To:
> <sip:phone_User at 192.168.0.6>..Contact:
> <sip:phone_User at 192.168.0.18>..Call-ID: 34cc
>  4c2e6df9395b at 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 at 192.168.0.6>;tag=ac25e718e18ae5ea..To:
> <sip:phone_User at 192.168.0.6>..Contact: <sip:phone_U
>  ser at 192.168.0.18>..Call-ID: 34cc4c2e6df9395b at 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 at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers 




More information about the sr-users mailing list