lithiumli wrote:
YOUR SIP STATUS
SIP Status: disconnected
SP2 (Optional)freephoneline.ca AccountRegister Failed: No Response From Server
If the server isn’t responding you may need to consider that you’ve been temporarily IP banned, in which case point C below is of interest.
Note that each time your ATA reboots, it attempts to register with FPL again.
1. Setup your ATA using this PDF guide, fully (ignore anything about Tropo, since Tropo is shutting down at the end of October, 2018):
http://forum.fongo.com/viewtopic.php?f= ... 805#p73839. Do not use the preconfigured Freephoneline profile at Obihai.com. To understand why, read page 5 of the PDF guide.
2. After step 1 (above), refer to pages 47 and 48 of the PDF guide.
That is, refer to this section:
Are Freephoneline’s SIP servers down? My ATA isn’t registered.
A. Visit
http://status.fongo.com/ to check server status.
B. If the service status website doesn’t note any issues, then chances are the problem is on your end. In your Obihai ATA or at Obitalk.com (whichever you normally us; don't use both methods), navigate to Voice Services-->SP(FPL) Service-->X_UserAgentPort. X_UserAgentPort should be a random port number between 30000 and 60000. Just pick a port number in that range. Change to a new port number in that range. Click the “submit” button, and reboot the ATA. (If you use Obitalk.com to change settings, you will need to use Obitalk.com).
If changing X_UserAgentPort works, you were dealing with a corrupted NAT connection in your router.
Possibly a NAT router connection was never disconnected or never timed out properly. And, then, the ATA keeps the corrupted connection in a persistent state over and over again. (Credit goes to Mango for this information). Possibly, this problem is due to the router's UDP timeout being in excess of the ATA's Failure Retry timer (RegisterRetryInterval with Obihai ATAs). With FPL, that's 120 seconds.
Thanks to Mango, many of us now understand that in order for ATAs to remain registered and working properly with a VoIP SIP provider like Freephoneline, in particular after power failures, the following conditions must be met:
UDP Unreplied Timeout (in your router) < NAT Keep-alive Interval (in your ATA; for Obihai ATAs this is X_KeepAliveExpires) < UDP Assured Timeout (in your router) < SIP Registration Failure Retry Wait Time (or RegisterRetryInterval in Obihai ATAs)
“<“ means less than.
When a modem leases a new IP address, a problem can arise where prior associations using the old IP address are maintained in the router. When the ATA attempts to communicate using the old IP address, the response is unreplied, and then if the UDP Unreplied timeout is greater than the Keep Alive Interval (and UDP Unreplied timeout is often set to 30 by default in consumer routers) a problem arises where the corrupted connection persists. If UDP Unreplied timeout is, for example, 10, and the NAT Keep Alive Interval is 20, then the corrupted connection will timeout or close. A new connection will be created, and everything will work fine.
Another problem can occur when the Keep-Alive interval is greater than UDP Assured Timeout (often 180 by default in consumer routers): the NAT hole will close due to the ATA not communicating frequently enough with the SIP server. In turn, incoming calls may, intermittently, not reach the ATA. Again, X_KeepaliveExpires is supposed to be 20 with FPL.
Getting access to both UDP Unreplied Timeout and UDP Assured Timeout settings in consumer routers may be difficult, if not impossible.
Asuswrt-Merlin, third party firmware for Asus routers, does offer easy access to these two settings, which are found under Tools-->Other settings. However, my understanding is that third party Tomato firmware has these two settings as well. So if your router supports Tomato firmware, that may be another option.
The keep alive interval for FPL is 20. The SIP Registration Failure Retry Wait Time is 120. I use 10 for UDP Unreplied Timeout and 117 for UDP Assured Timeout.
C. Double check your Registration timers (refer to page 21). For RegistrationPeriod use 3600, and
RegisterRetryInterval should be 120. If your ATA makes more than 5 registration attempts in 5 minutes, you may end up being temporarily IP banned by the specific FPL server the ATA was sending registration requests to. If you're temporarily IP banned, you could then try switching ProxyServer (refer to pages 14, 20, and 21) to a different FPL server than the one you were previously using (voip.freephoneline.ca, voip2.freephoneline.ca, or voip4.freephoneline.ca:6060), unless you need to use voip4.freephoneline.ca:6060 because you have SIP ALG forced on in your router. The purpose of voip4.freephoneline.ca:6060 is to circumvent SIP ALG features in routers. If you followed this guide properly, chances are you haven’t been temporarily IP banned and should skip ahead to step D.
From
https://community.freepbx.org/t/trunk-s ... ca/22479/8
"As May 2013, our servers will rate limit REGISTER requests to a maximum of 10 requests per 5 minutes. Each authentication round usually consumes 2 requests (digest auth), so it is a fair number given our guidelines. Also, it does not affect INVITES (which are also authenticated)...
This rate limit is applied per IP address as our service is tailored to residential Canadian users (ADSL/Cable)."
If you're temporarily IP banned, you could then try switching Primary SIP Server to a different FPL server than the one you were previously using (voip.freephoneline.ca, voip2.freephoneline.ca, or voip4.freephoneline.ca:6060), unless you need to use voip4.freephoneline.ca:6060 because you have SIP ALG forced on in your router. The purpose of voip4.freephoneline.ca:6060 is to circumvent SIP ALG features in routers. Or you can disable FPL SIP registration in all devices (turn off your ATA) and wait several hours until the temporary ban clears.
D. You can also try rebooting your modem–>router (wait for it to be fully up and transmitting data)–>ATA (in that order).
SIP User Agent:
YOUR SIP SETTINGS
SIP Username: *********
SIP Password: ******
Inbound/Outbound Proxy: voip.freephoneline.ca
Registration Expires: 3600
Use Preferred Codec: G711U or G729a
Use Preferred Codec Only: No
RTP Packet Size: 0.020
Ring Tone Frequency: 52
Ring Tone Voltage: 90
Those are just recommended settings and should be ignored other than your SIP Username and Password and the registration expiry. Definitely do not use G.729a unless you enjoy inferior sound quality.
---
Note that only one registration per FPL account is allowed at any time. When there are multiple devices/softphones using the same account, only the most recent registration is valid. The previous device will lose registration. This is especially important to consider if someone else is using your SIP credentials (username and password) that are found after logging in at
https://www.freephoneline.ca/showSipSettings (or if you're trying to register your FPL account with a smartphone SIP app or with another device). Registration is required for incoming calls. It is not required for outgoing calls. If you simply want to make outgoing calls using your FPL number, configure, but don't register the account, on the SIP app being used. This is also important to consider if you're using Freephoneline's desktop application (don't have it running while using your ATA with the same FPL account). Additionally, keep in mind that if someone else is also attempting to register the same SIP credentials on another device where you live, too many registration attempts can result in a temporary ban (see point C above).