| |
| News & Reviews |
Welcome to the Voxilla VoIP Forum.
Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Voxilla VoIP Forum |
NAT transversal problems?? Asterisk in DMZTechnical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX. |
| | LinkBack | Thread Tools | Rate Thread | Display Modes |
| |||
| Some time ago I set up an Asterisk server in the DMZ of a WRT54G router (w/Sveasoft). I use Teliax for both in and outbound connection to PSTN. I used SPA 3000; Xlite, etc., behind the same router without problem. Just bought a new Polycom301 (from Voxilla Store), set it up and it tested OK behind the same server as the * server. Took the Polycom and Xlite to my remote office (behind another WRT54G with Sveasoft) and can only get inbound ring, but no connection on answer. Outbound doesn't work either. "Sip show peers" shows XLite and Polycom registered, but the NAT column on the CLI output has "N", even with NAT=yes in sip.conf. I will only have one SIP phone at this office (the Polycom). Does anyone have an idea for a quick fix to get the phone working? I had the idea of putting the Polycom in the DMZ of the remote office router, but wasn't sure if it would work or how exactly to do it. Maybe something easier? Thanks everybody! Mike. |
| |||
| Thanks, Josh: Per your suggestion, I did the port forwarding on the WRT54G router that is along side the Asterisk Server, using the ip address of the server in the router settings and the range (10000-20000) from rtp.conf. Unfortunately, it didn't help. Should I be doing any port frowarding on the router on the other side--the one in front of the SIP phone? Thanks, Mike!!! |
| |||
| Quote:
using SIP accross NAT = not so great, using NAT on both sides won't work at all (so far as I know, go the same prob as you)... I just use asterisk via IAX2 (it goes through nat just fine) and have my sip devices all behind the FW - use IAXY device for phones outside of my local network (goes through nat just fine becuase it uses iax instead of sip) Hope this helps. |
| | |
![]() |
| |||
| Thanks mberlant! I implemented the following suggestion/posting from the Polycom forum (same as yours) and it works great with the exception that sometimes when calls are sent from the * server to the Sip Phone, it doesn't ring, but still works for calls from SIP to the PSTN through *. Maybe the cron job is the solution? Also, should I be setting up a separate port for each SIP device or can everything be sent through 5060 w/o problems? Thanks everybody!! Mike. =============== 'm in the process of setting up remote phones too. I have SPA841 working, I haven't tried a Polycom yet. My research says you need the following in your sip.conf file: externip= <external ip address of * box or router> localnet=192.168.1.24/255.255.255.0 <internal IP address of * box> =============== |
| |||
| Hey Mberlant: Just after my last post, I noticed your post in the general forum (http://voxilla.com/forum-viewtopic-t...ight-dead.html) explaining potential multiple SIP registrations problems (it was helpful-thanks!), which I am wondering if it is related to my problem/question above about ports. On the Asterisk server side is there anything that needs to be done to avoid this problem other than the standard sip.conf stuff? Mike. |
| |||
| Quote:
|
| |||
| I have been trying all day to figure it out. It seems intermittent. I have been testing by dialing my Teliax DID (this is a business phone system) and sometimes it rings through to the SIP phone (located on another network) and sometimes not. It consistently works for outbound. If I "reboot" the Polycom, it seems to work again. I am wondering if there is some kind of conflict with my SPA3000 at my home office, or the need to register with a CRON job per Mberlant's suggestion, or other? It seems like what is happening is the opposite of the NAT transversal issue of getting a call signal, but no sound (I get sound, but no signal). I am also seeing the following error message (possibly related??) in my CLI> output: Aug 9 20:08:54 WARNING[5780]: chan_sip.c:1046 retrans_pkt: Maximum retries exceeded on call 365403d245c6ebdb06a69aa723f34d5a@208.139.204.228 for seqno 102 (Critical Response) Thanks everybody! Mike. |
| ||||
| A few things. First, I neglected to feed you the crontab line. This will save you working it up yourself. So you know, every time sip.conf is reloaded it goes out and resolves the FQDN in externip= to its current IP address. Since I never know when my ISP is going to reset my PPPoE and give me a new address I have it checking and reloading every 10 minutes. 01,11,21,31,41,51 * * * * /usr/sbin/asterisk -r -x 'sip reload' As to your port concerns - don't be. All of your SIP clients behind a router (just like any other kind of client) sends a session request that specifies the destination IP address and port number (www.google.com:80, sip.myasterisk.net:5060, etc.) and identifies the LAN return address of the originator (192.168.1.50:80, 192.168.1.66:5066, etc.). Your router, as it passes the request out to the public internet, replaces the private IP address in the "return address" field with the router's public IP address and then looks at the port number that the originator is listening on. If this port number is available at the moment on the public interface most routers will allow that port number's use. If the port number is already occupied in another session the router will assign a different port number for replies to be accepted on. Needless to say, the router keeps track of all of these temporary dynamic routings. It is by this scheme that you can have 20 screens open with Google on 7 different computers and none of these 20 conversations, despite having identical originating and destination public IP addresses, will end up with "crossed wires". Likewise, this is how you can have 5 different ATAs or SIP phones behind the same router, all registered with the same Asterisk server, and they will not interfere with each other. I've said it before, but it bears repeating - I have never needed to manually forward any ports through any NAT router in order to support any SIP client(s). This has been with many different router makes and models, and the only constraint that I must have avoided is that none of these routers is Symmetric NAT, which will interfere with STUN's operation. While most of these routers have been under my control at locations owned by myself or my clients, many of these routers were absolutely inaccessible to me (airports, hotels, cafes, corporate networks, retail store networks, etc.). The situation in my own home is this: Asterisk in the DMZ behind a Linksys WRT54GS. I have 37 service registrations to about 20 different service providers running through the Asterisk. In addition, I have 28 extensions currently in operation (9 are behind the same NAT router and 19 are elsewhere around the world). All 28 extensions, both internal and external, register with the Asterisk via the Asterisk's Dynamic DNS FQDN. This is what works for me.
__________________ Please do not send technical questions via PM. Please post all questions to the forum. |
| | |
| Save $10 when you buy an unlocked Linksys SPA3102 Includes VoIP/PSTN gateway, FXO/FXS ports, and router. Sale Price: $76.95 |
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NAT Problems - Different NAT Types detected | campuschill | Linksys (Sipura) VoIP Support Forum | 14 | August 14th, 2006 04:45 AM |
| Asterisk <--> NAT <-> Internet <-> NAT < | syscon | Asterisk Support Forum | 1 | May 8th, 2006 08:47 AM |
| Another NAT question: Multiple line problems with 1001 841 | Kristopher83 | Linksys (Sipura) VoIP Support Forum | 6 | May 24th, 2005 11:25 AM |
| voice delivery problems for two spa-2000 behind NAT | jyu88 | Linksys (Sipura) VoIP Support Forum | 2 | September 21st, 2004 03:05 AM |
| Curious: DMZ, Port-Forwarding - Does it make a difference? | uo_mba | Linksys (Sipura) VoIP Support Forum | 5 | August 2nd, 2004 03:06 PM |