Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Asterisk finds server unreachable

Posted on 2011-03-24
16
Medium Priority
?
1,095 Views
Last Modified: 2012-05-11
Wouldn't you know it I tested the last solution for 5 days then as soon as posted the accepted solution the problem came back. This question is the same as my previous question. Somehow or other after being connected for maybe 2 days asterisk finds the VoiP provider server unreachable, which is then fixed by power cycling the modem. The funny thing is the connection lasts longer with 1 router over the other. It happens with 3 routers. The same as before, when the connection is down I can ping the server using the server name not the ip address so I know it's resolving. I'm using the same NAT traversal method, namely specifying the externip= xx.xxx.xxx.xxx and  localnet=192.168.0.0/255.255.255.0 in the config file. Once it goes down it does not come back.
0
Comment
Question by:Jeff swicegood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 4
  • 2
16 Comments
 
LVL 8

Expert Comment

by:API_NOC
ID: 35218709
Have you tried putting your server into the DMZ of your network?
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35219954
I have a double NAT, one in the modem and one in the router. If I put the server in the DMZ of the router, would I also need to put the router in the DMZ (if it has one) of the modem?
0
 
LVL 19

Expert Comment

by:feptias
ID: 35230383
Sorry to hear that you've still got the problem. You can ask for a refund of points if you want.

To answer your DMZ question, the modem most likely just passes everything through to the router - so a DMZ would only make sense in the context of the router.

I wonder if it could be some kind of connection/session timeout. Are there any settings for session timeouts on the router? If so, the timeout for UDP connections is the relevant one (it is used by the stateful packet inspection engine). Try increasing it by about 50%. If there are settings to limit the maximum number of sessions, make them a little more generous.

Another idea: Check the settings on the firewall that are designed to protect it from attacks such as Denial of Service, UDP Floods, etc. Experiment with disabling them for a while to see if they make a difference.

Do you have access to the setup forms on the modem? If so, does it have settings for connections or sessions like those mentioned above?

A final idea: Next time you get the problem, try disconnecting the router from the modem for 5 minutes - just unplug the patch lead, but don't power cycle the modem. When you reconnect the patch lead, does it fix the problem or do you have to power cycle the modem.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 8

Expert Comment

by:API_NOC
ID: 35232154
Put the router into the DMZ of the modem. Then the asterisk server in the DMZ of the router.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35234990
Thanks for all your leads. I am in the process of testing. I'll get back to you in a few days.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35243661
Yes, disconnecting the router from the modem for 5 mins restored the connection and fixed the problem.
0
 
LVL 19

Expert Comment

by:feptias
ID: 35243793
That's interesting. It points to an issue with established router connections - disconnecting the modem would force the router to clear its list of established connections. Next time, try a very brief disconnection of the patch lead. In my opinion it points much more to a router issue than a modem issue, but its a tough one to pin down.

Did you find any settings for sessions/connections etc?
0
 
LVL 8

Expert Comment

by:API_NOC
ID: 35243908
Does the problem exists even when the DMZs are opened up?
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35244062
I am just now setting the DMZ's and looking for session settings. I'll get back to you soon.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35258632
I set the DMZ's and I did find a setting for UDP timeout. I increased it from 120 sec to 180 sec. I did not find a setting for maximum sessions, but I did find one for maximum ports, but it was already at maximum.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35263749
Disconnecting patch cable for a short period did not restore the connection. Neither using the DMZ' nor the new UDP timeout settings helped.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35317246
Did you have any more ideas?
0
 
LVL 8

Accepted Solution

by:
API_NOC earned 2000 total points
ID: 35317913
Can the modem in front of your router be put into bridge mode? This would allow the public IP to be on your router and then you can try the DMZ on the router.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35318245
I have attempted to put the modem in bridge mode, but I was not able to find enough information on the web. It is a Zyxel 660R. Maybe if I call my ISP they will help me do that.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35360207
The modem is now in bridge mode. I guess I will test it for a few days before putting the server in the DMZ.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 35410858
Putting the modem in bridge mode, even without using DMZ has done the trick since my past post! I will test it for another week, then award full points.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question