Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


jlg84

63 posts

Master Geek


#181381 13-Oct-2015 15:30
Send private message

I have noticed that on those occasions when my internet is down (either due to a power outage, or something wrong with our internal settings, or whatever), my Asterisk system can be up and running just fine (according to a check to the Asterisk GUI), but calls to my number will not ring through. The only way to get them to come through again is to use my 2Talk system to make an outgoing call, which seems to "kickstart" the system back into gear. Is this a feature, or a fault? If the former, then that kinda sucks, but if it's the latter, what can I do to remedy it?

Create new topic
speed
293 posts

Ultimate Geek


  #1405085 13-Oct-2015 15:33
Send private message

Triggering a registration should do it.

If you have a script that is able to determine when you are back up again then it could tell Asterisk to re-register by issuing:

asterisk -rx 'sip reload'

I'm pretty sure that causes a new registration to go out. You can check the registration status with:

asterisk -rx 'sip show registry'

Pete




jlg84

63 posts

Master Geek


  #1405103 13-Oct-2015 16:10
Send private message

That would be great; where would the script go, in my Asterisk PBX or somewhere else?

sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #1405109 13-Oct-2015 16:18
Send private message

It's not a fault and should never happen.

What version of Asterisk are you using? It sounds very much like the infamous Asterisk DNS 'bug' assuming you've configured your box with a FQDN for the SIP proxy and are using an external DNS. If so it's just a bad setup causing the issue.






jlg84

63 posts

Master Geek


  #1405134 13-Oct-2015 17:14
Send private message

I'm on v.11.4.0, and I have to confess I have never become terribly expert at it so managing it or messing with the code is something I am very wary of doing. I have also therefore never upgraded the components, or do so only under great duress.

sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #1405153 13-Oct-2015 18:19
Send private message

It's not your version or lack of updates, it's just that you don't have things configured correctly. It's probably one of the most common issues affecting people new to Asterisk who follow setup guides but don't actually understand what's happening!

Use of a FQDN for the sip peer IP is not recommended. If you are going to use a FQDN then your Asterisk box needs to be running a local DNS proxy or be pointing to a local DNS server. There are huge numbers of posts covering this online if you search for it.




jlg84

63 posts

Master Geek


  #1408566 18-Oct-2015 13:01
Send private message

The fellow who set up my Asterisk system came back to me (having seen my post on here) saying that the error was his, and that I should change my settings in Asterisk to have the SIP_Registration go to an IP address rather than to a URL. I have done that, and also done the same in the SIP_Peering setup in the trunks for my installation, but the system still deregisters after a while (it is not, as I had previously thought, tied to an internet outage, and instead may go some way toward explaining why it seems that I get so few phone calls ever since this Asterisk system was installed). 

So, if the error was having the URL instead of an IP address, but the problem is still happening (I have not figured out how long has to elapse before the system once again requires a kickstart), what else could be causing this trouble? Is there anyone out there who would like to raise their hand to offer their services to be my VoiP management person?

speed
293 posts

Ultimate Geek


  #1408575 18-Oct-2015 14:00
Send private message

SIP_Peering and registration are mutually exclusive. Registration is not needed if you configure peering/trunking (however firewall configuration is!). Mixing the two may be part of the cause of your problems here.  You should use one or the other but not both. Do not choose peering/trunking if your public IP changes occasionally; use registration instead (not as well as).

My best guess here is that inbound calls made shortly after a new registration event are getting through due to the inbound UDP port on the firewall still being open. However the NAT timeout occurs before the registration timeout period and there is a portion of time afterwards during which the inbound UDP can't get in through the firewall again. If calls come in via the trunk (or registration) during that period they will fail due to lack of the INVITE packet getting through to your PBX.

I recommend change your system configuration to either a trunk system with associated firewall rules in place, or a registration ONLY system with a low registration timeout period and keepalives enabled. Alternatively if possible for you to do, moving your PBX to a (non-firewalled) public IP address would probably mask these issues too.


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.