Two ATAs - how to port forward?

Have a question or problem with your Fongo application? This forum is the place to get help from both staff and fellow community members.
Fongo recommends Fongo Home Phone for a fully supported Home Phone system for only $4.95/mo
sharky
Just Passing Thru
Posts: 20
Joined: 08/24/2010
SIP Device Name: Linksys ATA
Firmware Version: ?
ISP Name: Cogeco
Computer OS: Win7, WinVista, WinXP
Router: Cisco E3000

Two ATAs - how to port forward?

Post by sharky »

Got a problem,

I have a two line PAP2T working great for a few years with 2 lines from Freephoneline. From my router I port forward 5060-5061, 6060-6061 and 13000-13001 (both TCP and UDP) from my router to the IP of the PAP2T.

I had someone move in with a Grandstream 1 line adapter and freephoneline. I changed the port in the Grandstream to 5070 and port forwarded TCP and UDP 5070 to the IP on the router. Still doesn't work, all I get is a fast busy on the grandstream. Status page says:
Registered: Yes
PPPoE Link Up: disabled
NAT: detected NAT type is open Internet
NAT Mapped IP: 0.0.0.0

Are there other ports I need to forward to make this work.

Seems when I pick up line one on the PAP2T (port 5060) the grandstream goes off-hook. When I pick up line two on the PAP2T (port 5061) it doesn't effect the grandstream.
PAP2T line 2.jpg
Pap2T line 1.jpg
Granstream conf.jpg
You do not have the required permissions to view the files attached to this post.
dibsmft
*Go-To Guy*
Posts: 651
Joined: 05/11/2011
SIP Device Name: Yealink T22 (SPA3102 GS286)
Firmware Version: 7.60.0.110
ISP Name: Bell-Aliant DSL
Computer OS: Linux Mint
Router: Speedstream 6520
Smartphone Model: Google Nexus 5
Android Version: 3.2.1
Location: St. John's NL

Re: Two ATAs - how to port forward?

Post by dibsmft »

You need to make sure that your ATA has a fixed internal IP from the router. Forward ports 5071 and 5072 UDP to your ATA and give the other ATA a fixed IP and for port 5073 UDP to it as well as 6064 - 6068 UDP. The settings on the yellow page above look wrong so they will need to be changed to match what is forwarded and it says STUN "Yes" but gives no STUN server...etc
sharky
Just Passing Thru
Posts: 20
Joined: 08/24/2010
SIP Device Name: Linksys ATA
Firmware Version: ?
ISP Name: Cogeco
Computer OS: Win7, WinVista, WinXP
Router: Cisco E3000

Re: Two ATAs - how to port forward?

Post by sharky »

Sorry - don't quite understand.
Each ata right now does have a static IP internally
ATA1 (PAP2T) is .118 - are you saying to forward ports 5071 and 5072 UDP (I am using port 5060 and 5061??) see conf above...
ATA2 (Grandstream) is .5 - are you saying to forward ports 5073 UDP as well as 6064-6068 to it (I am using port 5070??) see conf above

with repect to the setting of the STUN server - I have tried seeting NO as well as adding STUN servers - but referring to the device configuration sharing section of this forum, the Grandstream recommendation is to put it with YES and nothing in the blank - see http://forum.fongo.com/viewtopic.php?f=15&t=647 - this is what is recommended. Should I change it to NO or should I set a STUN server here?

Right now my router forwards 5060-5061, 6060-6061 and 13000-13001 UDP and TCP to .118 (ATA1 - two line - PAP2T - blue confs above) and 5070 UDP and TCP to .5 (ATA2 - one line - grandstream - yellow conf above).

AF
dibsmft
*Go-To Guy*
Posts: 651
Joined: 05/11/2011
SIP Device Name: Yealink T22 (SPA3102 GS286)
Firmware Version: 7.60.0.110
ISP Name: Bell-Aliant DSL
Computer OS: Linux Mint
Router: Speedstream 6520
Smartphone Model: Google Nexus 5
Android Version: 3.2.1
Location: St. John's NL

Re: Two ATAs - how to port forward?

Post by dibsmft »

Good .... needed to check. Do both get the correct IP when they boot?
Yes for ATA 1 set the internal SIP line 1 as 5061 (internal) and line 2 as 5062 (internal). The external port should be 5060 (Sorry, I got confused with another question that I was answering). Don't forward 5060 at all and you need to forward 5062.
ATA2 to avoid confusion you can leave it as SIP port 5070 (it does not really matter as this is the internal port - the GS uses 5060 as the external by default).
Try without STUN first but if you still get the problem try setting a STUN server (eg. stun.callwithus.com or stun.ekiga.net).
I can run a 3 line phone, a GS286, a SPA3102 etc. all running voip OK so you should be able to as well.
User avatar
Bloodsong
Tried and True
Posts: 362
Joined: 09/18/2009
SIP Device Name: Zoiper| Grandstream GXP2000
ISP Name: Tek Savvy Internet (DSL)
Computer OS: CentOS, Arch, Widows 7, AIX, AS/400
Router: Cisco ASA 5520
Smartphone Model: Samsung Galaxy Ace Q
Android Version: 2.3.6
Location: Simcoe County

Re: Two ATAs - how to port forward?

Post by Bloodsong »

You shouldn't worry too much about doing PAT.
Multiple SIP ports are supported and should be used.
Further you can't rely on multiple internal SIP ports translating to a single external to work properly when more than one device are receiving said signal.

Allow 5060 and 5061 both to forward straight through to ATA 1, and forward another range to ATA 2.
And as you can see in your ATA setting screenshot above you can (and should) set the SIP port on the line in the ATA to match the port that has been forwarded to it.

Example
---------------------
Router: 192.168.42.1
ATA 1: 192.168.42.11
ATA 2: 192.168.42.12

Port Forwarding
5060-5061 --> 192.168.42.11
5070-5071 --> 192.168.42.12

ATA 1 -- Line 1: SIP Port 5060
ATA 1 -- Line 2: SIP Port 5061

ATA2 -- Line1: SIP Port 5070

(Note any acceptable class C addressing scheme may replace the one above, any acceptable SIP port configuration may also replace the ones chosen.)