[OpenSIPS-Users] OpenSIPS-Users] takes ages to register

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon May 3 10:11:23 CEST 2010


Hi Andy,

The traces shows that opensips replies in notime to all the REGISTER 
requests - I see a 12 secs delay between the second 401 reply (from 
opensips) and REGISTER request (from UAC) with credentials -> so the 
delay comes from UAC. At least this is what the traces shows.

Regards,
Bogdan

Andy Thomas wrote:
> Heres some traces-
>
> This is my first softphone, takes 3 attempts to register, and a total of 24
> seconds to complete:
>
>
> U 2010/04/28 20:45:25.685389 79.121.180.192:38670 -> 92.63.137.209:5060
> REGISTER sip:voipexpress.co.uk SIP/2.0.
> Via: SIP/2.0/UDP 192.168.10.13:5070;rport;branch=z9hG4bK04640.
> Max-Forwards: 20.
> To: <sip:testuser1 at voipexpress.co.uk>.
> From: <sip:testuser1 at voipexpress.co.uk>;tag=2359.
> Call-ID: 1272483910-4640-ANDY-HOME at 192.168.10.13.
> CSeq: 2 REGISTER.
> Contact: <sip:testuser1 at 192.168.10.13:5070>;expires=3600;q=0.90.
> User-Agent: NCH Software Express Talk 4.03.
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 20:45:25.687274 92.63.137.209:5060 -> 79.121.180.192:38670
> SIP/2.0 401 Unauthorized.
> Via: SIP/2.0/UDP
> 192.168.10.13:5070;rport=38670;branch=z9hG4bK04640;received=79.121.180.192.
> To:
> <sip:testuser1 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.a93d.
> From: <sip:testuser1 at voipexpress.co.uk>;tag=2359.
> Call-ID: 1272483910-4640-ANDY-HOME at 192.168.10.13.
> CSeq: 2 REGISTER.
> WWW-Authenticate: Digest realm="voipexpress.co.uk",
> nonce="4bd890730000000b75de71bff18e6f3b1b75ea9d026629f1".
> Server: OpenSIPS (1.6.2-notls (i386/linux)).
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 20:45:37.683605 79.121.180.192:38670 -> 92.63.137.209:5060
> REGISTER sip:voipexpress.co.uk SIP/2.0.
> Via: SIP/2.0/UDP 192.168.10.13:5070;rport;branch=z9hG4bK14640.
> Max-Forwards: 20.
> To: <sip:testuser1 at voipexpress.co.uk>.
> From: <sip:testuser1 at voipexpress.co.uk>;tag=2359.
> Call-ID: 1272483910-4640-ANDY-HOME at 192.168.10.13.
> CSeq: 3 REGISTER.
> Contact: <sip:testuser1 at 192.168.10.13:5070>;expires=3600;q=0.90.
> User-Agent: NCH Software Express Talk 4.03.
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 20:45:37.684962 92.63.137.209:5060 -> 79.121.180.192:38670
> SIP/2.0 401 Unauthorized.
> Via: SIP/2.0/UDP
> 192.168.10.13:5070;rport=38670;branch=z9hG4bK14640;received=79.121.180.192.
> To:
> <sip:testuser1 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.ed8d.
> From: <sip:testuser1 at voipexpress.co.uk>;tag=2359.
> Call-ID: 1272483910-4640-ANDY-HOME at 192.168.10.13.
> CSeq: 3 REGISTER.
> WWW-Authenticate: Digest realm="voipexpress.co.uk",
> nonce="4bd8907f0000000c3e962a906408586f31fdad8586892592".
> Server: OpenSIPS (1.6.2-notls (i386/linux)).
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 20:45:49.683648 79.121.180.192:38670 -> 92.63.137.209:5060
> REGISTER sip:voipexpress.co.uk SIP/2.0.
> Via: SIP/2.0/UDP 192.168.10.13:5070;rport;branch=z9hG4bK24640.
> Max-Forwards: 20.
> To: <sip:testuser1 at voipexpress.co.uk>.
> From: <sip:testuser1 at voipexpress.co.uk>;tag=2359.
> Call-ID: 1272483910-4640-ANDY-HOME at 192.168.10.13.
> CSeq: 4 REGISTER.
> Contact: <sip:testuser1 at 192.168.10.13:5070>;expires=3600;q=0.90.
> Authorization: Digest
> username="testuser1",realm="voipexpress.co.uk",nonce="4bd890730000000b75de71
> bff18e6f3b1b75ea9d026629f1",uri="sip:voipexpress.co.uk",response="d2dbbfb5e7
> 36286471256c963873be96",opaque="",algorithm=MD5.
> User-Agent: NCH Software Express Talk 4.03.
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 20:45:49.687049 92.63.137.209:5060 -> 79.121.180.192:38670
> SIP/2.0 200 OK.
> Via: SIP/2.0/UDP
> 192.168.10.13:5070;rport=38670;branch=z9hG4bK24640;received=79.121.180.192.
> To:
> <sip:testuser1 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d482ef63.215c.
> From: <sip:testuser1 at voipexpress.co.uk>;tag=2359.
> Call-ID: 1272483910-4640-ANDY-HOME at 192.168.10.13.
> CSeq: 4 REGISTER.
> Contact: <sip:testuser1 at 79.121.180.192:38670>;q=0.9;expires=321,
> <sip:testuser1 at 192.168.10.13:5070>;q=0.9;expires=3600.
> Server: OpenSIPS (1.6.2-notls (i386/linux)).
> Content-Length: 0.
> ..................................
>
>
>
> Here's one using X-lite (takes 30 seconds to register):
>
> U 2010/04/28 21:42:29.777132 79.121.180.192:38672 -> 92.63.137.209:5060
> REGISTER sip:voipexpress.co.uk SIP/2.0.
> Via: SIP/2.0/UDP
> 192.168.10.13:5072;branch=z9hG4bK-d8754z-664c4957b5641f55-1---d8754z-;rport.
> Max-Forwards: 70.
> Contact: <sip:testuser2 at 79.121.180.192:38672;rinstance=78016c28dc6d89f8>.
> To: "testuser2"<sip:testuser2 at voipexpress.co.uk>.
> From: "testuser2"<sip:testuser2 at voipexpress.co.uk>;tag=9d01cb20.
> Call-ID: NTBlZmM2MWM0NGUxZDhiNWExN2E3MzhjOWZkMTU1ZmI..
> CSeq: 1 REGISTER.
> Expires: 3600.
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,
> INFO.
> User-Agent: X-Lite release 1104o stamp 56125.
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 21:42:29.778904 92.63.137.209:5060 -> 79.121.180.192:38672
> SIP/2.0 401 Unauthorized.
> Via: SIP/2.0/UDP
> 192.168.10.13:5072;branch=z9hG4bK-d8754z-664c4957b5641f55-1---d8754z-;rport=
> 38672;received=79.121.180.192.
> To:
> "testuser2"<sip:testuser2 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d48
> 2ef63.8145.
> From: "testuser2"<sip:testuser2 at voipexpress.co.uk>;tag=9d01cb20.
> Call-ID: NTBlZmM2MWM0NGUxZDhiNWExN2E3MzhjOWZkMTU1ZmI..
> CSeq: 1 REGISTER.
> WWW-Authenticate: Digest realm="voipexpress.co.uk",
> nonce="4bd89dd30000004e370b6dcc60ce56bc6659bd99bd333eca".
> Server: OpenSIPS (1.6.2-notls (i386/linux)).
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 21:42:59.771090 79.121.180.192:38672 -> 92.63.137.209:5060
> REGISTER sip:voipexpress.co.uk SIP/2.0.
> Via: SIP/2.0/UDP
> 192.168.10.13:5072;branch=z9hG4bK-d8754z-f827ad1654460f24-1---d8754z-;rport.
> Max-Forwards: 70.
> Contact: <sip:testuser2 at 79.121.180.192:38672;rinstance=78016c28dc6d89f8>.
> To: "testuser2"<sip:testuser2 at voipexpress.co.uk>.
> From: "testuser2"<sip:testuser2 at voipexpress.co.uk>;tag=9d01cb20.
> Call-ID: NTBlZmM2MWM0NGUxZDhiNWExN2E3MzhjOWZkMTU1ZmI..
> CSeq: 2 REGISTER.
> Expires: 3600.
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,
> INFO.
> User-Agent: X-Lite release 1104o stamp 56125.
> Authorization: Digest
> username="testuser2",realm="voipexpress.co.uk",nonce="4bd89dd30000004e370b6d
> cc60ce56bc6659bd99bd333eca",uri="sip:voipexpress.co.uk",response="2e89db5a0c
> 796236d36cd4c2914f34c6",algorithm=MD5.
> Content-Length: 0.
> .
>
> #
> U 2010/04/28 21:42:59.773982 92.63.137.209:5060 -> 79.121.180.192:38672
> SIP/2.0 200 OK.
> Via: SIP/2.0/UDP
> 192.168.10.13:5072;branch=z9hG4bK-d8754z-f827ad1654460f24-1---d8754z-;rport=
> 38672;received=79.121.180.192.
> To:
> "testuser2"<sip:testuser2 at voipexpress.co.uk>;tag=c97b4d1cb1f3d0da549e06a8d48
> 2ef63.7eb3.
> From: "testuser2"<sip:testuser2 at voipexpress.co.uk>;tag=9d01cb20.
> Call-ID: NTBlZmM2MWM0NGUxZDhiNWExN2E3MzhjOWZkMTU1ZmI..
> CSeq: 2 REGISTER.
> Contact:
> <sip:testuser2 at 192.168.10.13:29642;rinstance=36733de2d19009ec>;expires=3227,
> <sip:testuser2 at 79.121.180.192:38672;rinstance=78016c28dc6d89f8>;expires=3600
> .
> Server: OpenSIPS (1.6.2-notls (i386/linux)).
> Content-Length: 0.
> .
>
>
>
>
> -----Original Message-----
> From: sip.nslu at gmail.com [mailto:sip.nslu at gmail.com] On Behalf Of Ovidiu Sas
> Sent: 28 April 2010 8:22 PM
> To: Andy Thomas; users at lists.opensips.org users
> Subject: Re: [OpenSIPS-Users] OpenSIPS-Users] takes ages to register
>
> Please keep the mailing list in copy.  Private e-mails will go unanswered.
> Can you post a trace of an X-lite trying to register?
>
> Regards,
> Ovidiu Sas
>
> On Wed, Apr 28, 2010 at 2:42 PM, Andy Thomas <andy at andythomas.co.uk> wrote:
>   
>> I AM experiencing the exact same issue with Xlite
>> And also if I try and register an Asterisk SIP trunk to the opensips
>>     
> server
>   
>> too!
>> These are in different locations with different internet connections, so
>>     
> the
>   
>> opensips server is the only common thing.
>>
>> Regards
>> Andy
>>
>>
>> -----Original Message-----
>> From: sip.nslu at gmail.com [mailto:sip.nslu at gmail.com] On Behalf Of Ovidiu
>>     
> Sas
>   
>> Sent: 27 April 2010 11:24 PM
>> To: Andy Thomas
>> Cc: users at lists.opensips.org users
>> Subject: Re: [OpenSIPS-Users] OpenSIPS-Users] takes ages to register
>>
>> Here's my first reply to your initial post:
>> http://lists.opensips.org/pipermail/users/2010-April/012300.html
>>
>> I doubt that you are experiencing the same issue with x-lite.
>>
>> One thing that you can try is to let opensips to reuse the noce in the
>> authentication process:
>> http://www.opensips.org/html/docs/modules/devel/auth.html#id228317
>> Maybe this will make your SIP UA happy.
>>
>>
>> Regards,
>> Ovidiu Sas
>>
>>
>> On Tue, Apr 27, 2010 at 3:54 PM, Andy Thomas <andy at andythomas.co.uk>
>>     
> wrote:
>   
>>> I never got your first email.
>>> It wasn’t in the digest either!
>>>
>>> I have tried several sip client softphones, including x-lite
>>> All of them give the same problem!
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: sip.nslu at gmail.com [mailto:sip.nslu at gmail.com] On Behalf Of Ovidiu
>>>       
>> Sas
>>     
>>> Sent: 27 April 2010 8:14 PM
>>> To: OpenSIPS users mailling list; Andy Thomas
>>> Subject: Re: [OpenSIPS-Users] OpenSIPS-Users] takes ages to register
>>>
>>> As I pointed out in a previous e-mail, the issue is with your client:
>>> it should send out the second REGISTER with an Authorization header.
>>> Please read the answers that you get before re-posting the same thing
>>> again and again.
>>>
>>> Regards,
>>> Ovidiu Sas
>>>
>>> On Tue, Apr 27, 2010 at 2:47 PM, Andy Thomas <andy at andythomas.co.uk>
>>>       
>> wrote:
>>     
>>>> 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="4bd5ed340000000e265ef8
>   
> 398de58d485e50f061b83fcbc0",uri="sip:voipexpress.co.uk",response="4cb47c6109
>   
>>> bce14b54359f285d763017",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>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>         
>>>       
>>     
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list