SIP 401 Unauthorized

This section is for general discussions surrounding digital phone service.
Xphox
Just Passing Thru
Posts: 2
Joined: 03/08/2013
SIP Device Name: FreePBX
ISP Name: A2Hosting
Computer OS: CentOS

SIP 401 Unauthorized

Post by Xphox »

Hello,

I have been using the service fine for about a month since I bought my SIP creds. Then all of a sudden about a few hours ago I'm now not able to register. Sometimes I am sometimes I'm getting 401. Then I see FreePhoneLine trying to end calls which I'm not even processing. I checked and the status page showed no outage/issues.

49.686599 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
50.185996 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
51.186729 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
52.035514 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 401 Unauthorized (1 bindings)
52.038222 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
52.537829 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
53.538350 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
55.538205 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
59.010041 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
164.013114 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
164.037629 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
269.143881 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
269.638588 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
374.641349 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
375.140972 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
375.610358 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 401 Unauthorized (1 bindings)
375.613766 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
375.671431 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
480.674644 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
481.174254 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
481.515550 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
586.519987 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
586.542434 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
691.569967 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
692.069408 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
692.322160 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 401 Unauthorized (1 bindings)
692.325265 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
692.824859 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
693.824926 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
695.825287 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
696.869566 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
753.426542 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Request: BYE sip:12345678901@208.65.240.44:5060;transport=UDP
753.426730 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Status: 481 Call leg/transaction does not exist

----------------------

Finally just now as I'm trying this I'm seeing it stay registered I think and working again.

907.627800 208.65.240.44 -> XXX.XXX.XXX.XXX SIP/SDP Request: INVITE sip:12345678901@@208.65.240.44:5060, with session description
907.628476 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Status: 100 Trying
907.629313 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP/SDP Status: 200 OK, with session description
907.654914 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Request: ACK sip:12345678901@208.65.240.44:5060
909.887700 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Request: REGISTER sip:voip.freephoneline.ca
909.938078 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Status: 200 OK (1 bindings)
914.818576 208.65.240.44 -> XXX.XXX.XXX.XXX SIP Request: BYE sip:12345678901@208.65.240.44:5060
914.818843 XXX.XXX.XXX.XXX -> 208.65.240.44 SIP Status: 200 OK

--------------------------------------

This happen to anyone else?
User avatar
Jake
Technical Support
Posts: 2837
Joined: 10/18/2009

Re: SIP 401 Unauthorized

Post by Jake »

Check your registration and retry times. I think they start locking out accounts that try to either register or retry to register too often.

The settings page still shows between 180 and 3600, although now they say they want 3600.

If you are using a standard setup, then the registration time will be set at 120. Try changing this value in your sip.conf file to at least 180. I have mine set at 3600 and it is fine. I am also using the voip2 server that seems to be a little more stable.

This page will give you more information on the settings http://support.freephoneline.ca/entries ... redentials
Xphox
Just Passing Thru
Posts: 2
Joined: 03/08/2013
SIP Device Name: FreePBX
ISP Name: A2Hosting
Computer OS: CentOS

Re: SIP 401 Unauthorized

Post by Xphox »

I have made the suggested changes. Though once it resolved itself, I never had any further issues. :)