[OpenSIPS-Users] takes ages to register

Andy Thomas andy at andythomas.co.uk
Mon Apr 26 21:47:03 CEST 2010


Here's a -W trace, I always get 2 unauthorised then 1 authorised OK.
There is a 30-second time span from start to end.


#
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.192:38670;rport;branch=z9hG4bK03148.
Max-Forwards: 20.
To: <sip:testuser1 at voipexpress.co.uk>.
From: <sip:testuser1 at voipexpress.co.uk>;tag=8625.
Call-ID: 1272311050-3148-ANDY-HOME at 192.168.10.13.
CSeq: 2 REGISTER.
Contact: <sip:testuser1 at 79.121.180.192:38670>;expires=3600;q=0.90.
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 401 Unauthorized.
Via: SIP/2.0/UDP 79.121.180.192:38670;rport=38670;branch=z9hG4bK03148.
To: <sip:testuser1 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.7533.
From: <sip:testuser1 at voipexpress.co.uk>;tag=8625.
Call-ID: 1272311050-3148-ANDY-HOME at 192.168.10.13.
CSeq: 2 REGISTER.
WWW-Authenticate: Digest realm="voipexpress.co.uk", nonce="4bd5ed340000000e265ef8398de58d485e50f061b83fcbc0".
Server: OpenSIPS (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.192:38670;rport;branch=z9hG4bK13148.
Max-Forwards: 20.
To: <sip:testuser1 at voipexpress.co.uk>.
From: <sip:testuser1 at voipexpress.co.uk>;tag=8625.
Call-ID: 1272311050-3148-ANDY-HOME at 192.168.10.13.
CSeq: 3 REGISTER.
Contact: <sip:testuser1 at 79.121.180.192:38670>;expires=3600;q=0.90.
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 401 Unauthorized.
Via: SIP/2.0/UDP 79.121.180.192:38670;rport=38670;branch=z9hG4bK13148.
To: <sip:testuser1 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.3183.
From: <sip:testuser1 at voipexpress.co.uk>;tag=8625.
Call-ID: 1272311050-3148-ANDY-HOME at 192.168.10.13.
CSeq: 3 REGISTER.
WWW-Authenticate: Digest realm="voipexpress.co.uk", nonce="4bd5ed400000000f2ca92e41b130e201700f7e8517ac933c".
Server: OpenSIPS (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.192:38670;rport;branch=z9hG4bK23148.
Max-Forwards: 20.
To: <sip:testuser1 at voipexpress.co.uk>.
From: <sip:testuser1 at voipexpress.co.uk>;tag=8625.
Call-ID: 1272311050-3148-ANDY-HOME at 192.168.10.13.
CSeq: 4 REGISTER.
Contact: <sip:testuser1 at 79.121.180.192:38670>;expires=3600;q=0.90.
Authorization: Digest username="testuser1",realm="voipexpress.co.uk",nonce="4bd5ed340000000e265ef8398de58d485e50f061b83fcbc0",uri="sip:voipexpress.co.uk",response="4cb47c6109bce14b54359f285d763017",opaque="",algorithm=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;branch=z9hG4bK23148.
To: <sip:testuser1 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.fd52.
From: <sip:testuser1 at voipexpress.co.uk>;tag=8625.
Call-ID: 1272311050-3148-ANDY-HOME at 192.168.10.13.
CSeq: 4 REGISTER.
Contact: <sip:testuser1 at 79.121.180.192:38670>;q=0.9;expires=3600.
Server: OpenSIPS (1.6.2-notls (i386/linux)).
Content-Length: 0.
.






-----Original Message-----
From: Iñaki Baz Castillo [mailto:ibc at aliax.net] 
Sent: 25 April 2010 7:16 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] takes ages to register

2010/4/24 Andy Thomas <andy at andythomas.co.uk>:
> 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??


Please, do a correct captures. Use "-W byline" option with ngrep command.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>






More information about the Users mailing list