Your REGISTERS are wired.  The first one has:
 - Call-ID: [email protected]
 -  CSeq: 7

The next REGISTERs are part of the same Call-ID:
[email protected] with increasing CSeq:
 - CSeq: 2
 - CSeq: 3
 - CSeq: 4

Only the last REGISTER (CSeq: 4) has the authentication headers and
therefor is accepted.  All the previous REGISTERs are without any
authentication credentials and therefor are challenged.
>From a registrar point of view everything is fine.  You need to
investigate the behavior of your client: the REGISTER with CSeq: 3
should have authorization credentials.

Hope this helps.  Next time, capture with timestamp info (-t option for ngrep).


Regards,
Ovidiu Sas

On Sat, Apr 24, 2010 at 9:59 AM, Andy Thomas <[email protected]> wrote:
> Hi
>
> Im running 1.6.2 no TLS
>
> Config file is the chapter 5 demo file from Flavio’s book.
>
>
>
> It takes ages for my softphone to register with the system.
>
> The register requests get rejected 3 times, before finally accepting them.
>
> Does anyone know why this would happen??
>
>
>
>
>
> U 79.121.180.192:38670 -> 92.63.137.209:5060
>
>   REGISTER sip:voipexpress.co.uk SIP/2.0..Via: SIP/2.0/UDP 79.121.180.19
>
>   2:38670;rport;branch=z9hG4bK51496..Max-Forwards: 20..To: <sip:testuser
>
>   [email protected]>..From: <sip:[email protected]>;tag=5015
>
>   ..Call-ID: [email protected]: 7 REGISTER..
>
>   Contact: <sip:[email protected]:38670>;expires=3600;q=0.90..Use
>
>   r-Agent: NCH Software Express Talk 4.02..Content-Length: 0....
>
> #
>
> U 92.63.137.209:5060 -> 79.121.180.192:38670
>
>   SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 79.121.180.192:38670;rport=
>
>   38670;branch=z9hG4bK51496..To: <sip:[email protected]>;tag=c
>
>   97b4d1cb1f3d0da549e06a8d482ef63.ecc4..From: <sip:testus...@voipexpress
>
>   .co.uk>;tag=5015..Call-ID: [email protected]
>
>   eq: 7 REGISTER..WWW-Authenticate: Digest realm="voipexpress.co.uk", no
>
>   nce="4bd2f79b00000000db4552ffb01a7dcae7529d3b8b2b63d8"..Server: OpenSI
>
>   PS (1.6.2-notls (i386/linux))..Content-Length: 0....
>
> #
>
> U 79.121.180.192:38670 -> 92.63.137.209:5060
>
>   REGISTER sip:voipexpress.co.uk SIP/2.0..Via: SIP/2.0/UDP 79.121.180.19
>
>   2:38670;rport;branch=z9hG4bK04628..Max-Forwards: 20..To: <sip:testuser
>
>   [email protected]>..From: <sip:[email protected]>;tag=9437
>
>   ..Call-ID: [email protected]: 2 REGISTER..
>
>   Contact: <sip:[email protected]:38670>;expires=3600;q=0.90..Use
>
>   r-Agent: NCH Software Express Talk 4.02..Content-Length: 0....
>
> #
>
> U 92.63.137.209:5060 -> 79.121.180.192:38670
>
>   SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 79.121.180.192:38670;rport=
>
>   38670;branch=z9hG4bK04628..To: <sip:[email protected]>;tag=c
>
>   97b4d1cb1f3d0da549e06a8d482ef63.3acb..From: <sip:testus...@voipexpress
>
>   .co.uk>;tag=9437..Call-ID: [email protected]
>
>   eq: 2 REGISTER..WWW-Authenticate: Digest realm="voipexpress.co.uk", no
>
>   nce="4bd2f7ca00000001cb8522fdc3f69e05bfebf3ddff87b19a"..Server: OpenSI
>
>   PS (1.6.2-notls (i386/linux))..Content-Length: 0....
>
> #
>
> U 79.121.180.192:38670 -> 92.63.137.209:5060
>
>   REGISTER sip:voipexpress.co.uk SIP/2.0..Via: SIP/2.0/UDP 79.121.180.19
>
>   2:38670;rport;branch=z9hG4bK14628..Max-Forwards: 20..To: <sip:testuser
>
>   [email protected]>..From: <sip:[email protected]>;tag=9437
>
>   ..Call-ID: [email protected]: 3 REGISTER..
>
>   Contact: <sip:[email protected]:38670>;expires=3600;q=0.90..Use
>
>   r-Agent: NCH Software Express Talk 4.02..Content-Length: 0....
>
> #
>
> U 92.63.137.209:5060 -> 79.121.180.192:38670
>
>   SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 79.121.180.192:38670;rport=
>
>   38670;branch=z9hG4bK14628..To: <sip:[email protected]>;tag=c
>
>   97b4d1cb1f3d0da549e06a8d482ef63.7e7b..From: <sip:testus...@voipexpress
>
>   .co.uk>;tag=9437..Call-ID: [email protected]
>
>   eq: 3 REGISTER..WWW-Authenticate: Digest realm="voipexpress.co.uk", no
>
>   nce="4bd2f7d6000000027905af3dcdc3d3cbac0321585d4b2e3a"..Server: OpenSI
>
>   PS (1.6.2-notls (i386/linux))..Content-Length: 0....
>
> #
>
> U 79.121.180.192:38670 -> 92.63.137.209:5060
>
>   REGISTER sip:voipexpress.co.uk SIP/2.0..Via: SIP/2.0/UDP 79.121.180.19
>
>   2:38670;rport;branch=z9hG4bK24628..Max-Forwards: 20..To: <sip:testuser
>
>   [email protected]>..From: <sip:[email protected]>;tag=9437
>
>   ..Call-ID: [email protected]: 4 REGISTER..
>
>   Contact: <sip:[email protected]:38670>;expires=3600;q=0.90..Aut
>
>   horization: Digest username="testuser1",realm="voipexpress.co.uk",nonc
>
>   e="4bd2f7ca00000001cb8522fdc3f69e05bfebf3ddff87b19a",uri="sip:voipexpr
>
>   ess.co.uk",response="264f21c431d83b8c102f6d4e8b712709",opaque="",algor
>
>   ithm=MD5..User-Agent: NCH Software Express Talk 4.02..Content-Length:
>
>   0....
>
> #
>
> U 92.63.137.209:5060 -> 79.121.180.192:38670
>
>   SIP/2.0 200 OK..Via: SIP/2.0/UDP 79.121.180.192:38670;rport=38670;bran
>
>   ch=z9hG4bK24628..To: <sip:[email protected]>;tag=c97b4d1cb1f
>
>   3d0da549e06a8d482ef63.b2aa..From: <sip:[email protected]>;ta
>
>   g=9437..Call-ID: [email protected]: 4 REGI
>
>   STER..Contact: <sip:[email protected]:38670>;q=0.9;expires=3600
>
>   ..Server: OpenSIPS (1.6.2-notls (i386/linux))..Content-Length: 0....
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to