1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SPA9000 NAT Query: is it needed?

Discussion in 'Other Linksys Equipment' started by willfitz, Sep 26, 2006.

  1. willfitz

    willfitz LI Guru Member

    Dear all,

    i have set up using the Linksys wizard the SPA9000 PBX and 2 SPA942 VoIP phones.

    I have a DLink G624T router.

    I have not had to set any NAT settings on the router to enable receiving and send calls!!!

    i wonder if the wizard has magically done something or if the router has magically understood how to direct incoming calls to the PBX.

    comments?

    current net config:
    *****************

    dlink (port 1) --> 8-port linksys switch --> pc, laptop, printer, scanner and a windows small business server.

    dlink (port 2) --> Linksys SPA9000

    dlink (port 3) --> Linksys SPA942

    dlink (port 4) --> Linksys SPA942

    the dlink router WAN interface has a static public IP attached to it.

    Maybe i should set up port forwarding on the router and make relevant changes to the PBX configuration via the web interface.

    would this be the process:
    PBX NAT settings:
    ******************
    in each of the Line tabs of the PBX i would edit the "NAT Mapping Enable" and "NAT Keep Alive Enable" by clicking "yes"

    is this correct?

    currently they are set to "no"

    ROUTER NAT settngs for PBX:
    *****************

    select the PBX (assigned static IP address, eg 192.168.1.21) and create 2 nat rules for that IP address.
    rule 1: SIP_Rule port range 5060-5061
    rule 2: RTP_Rule port range 16384-16482

    in the DLINK router interface i have these options having selected the PBX Ip address:
    Rule name
    Protcol
    Port start
    Port end
    Port Map

    can anyone tell me what the port map means?

    NOTICE: i presume i only need to set port forwarding to the PBX and not to the phones also. is this correct?

    I would also like to query you about changing the host name on the 2 phones.
    i noticed when my router gives a Dynamic IP to the PBX and 2 phones they all have the host name "SipuraSPA". i felt this may lead to name conflicts so i edited the Web interface of each phone and gave them unique names. was this a wise thing to do?

    kind regards,
    Will.
     
  2. pablito

    pablito Network Guru Member

    You don't need port forwards or special rules at the router to make a Vonage product work. The device (SPA9000) will open a channel outbound which sets up the path for in/out calls. Routing and DNS is the only thing that must be right, DHCP can do this just fine.

    However, you can optimize the router with QOS rules and such but not before getting the basics working and having a need to do more.

    I don't know the SPA but if you aren't using it as the router then all the NAT etc rules are of no concern, that happens at the router.

    The other questions here and in your other threads are PBX related. I suggest getting some basic knowledge of generic PBX which will make the SPA options more clear.
     
  3. willfitz

    willfitz LI Guru Member

    Thanks Pablito.

    your right. the PBX is not directly connected to the internet and nor my network behind it. that is my network is NOT dsl-modem -->PBX --> phones and computers.

    i still presumed that i would have to manually set port forwarding to the PBX from the router!! but it works without having to do anything.

    one thing i do plan on making the PBX and phones have static Ip addresses so things can be more stable in if router is rebooted mulitiple times or whatever.

    i plan on keeping things like how DHCP does it. DHCP seems to assign the DNS equal to that of the default gateway. so i planned on doing the same.
    static ip address: 192.168.1.21 for PBX, .22 and .23 for each phone
    DNS = 192.168.1.1
    default gateway - 192.168.1.1

    will i have to worry about NAt if i go the static route rather than DHCP?
     
  4. pablito

    pablito Network Guru Member

    No, it just has to be correct. I would suggest setting a static IP outside the range of the DHCP server. (if DHCP range is .100-200 then use .20-.30 for example) You don't want the router to hand out a conflicting IP. In addition you might want to add a second DNS entry after the IP of the router.
    192.168.1.1
    24.x.x.x (check the router for what DNS it is using)

    The reason that it is working without special treatment at the router is that the device makes a connection to Vonage just like any PC would make a connection to something on the net. This connection sets up a two way channel with a heartbeat to keep it alive.
     
  5. willfitz

    willfitz LI Guru Member

    hi again,

    i most definately will set the static ip's outside the DHCP range, i sure don't want any conflicts.

    you mention vonage. as far as i can tell the Linksys SPA9000 are not locked to vonage or is it.

    any more insigth to vonage is welcome so i might better understand it.

    by the way what would happen if i did set nat physically on the router for the IP address on the PBX to allow SIP and RTP ports?

    would vonage and nat conflict?

    would there be better performance when i physically set the NAT for the PBX?
    what i mean is, i am an outside caller to the network, i make an inward call, the router must have to ask all IP addresses on the network of who is running SIP and RTP, then the PBX pipes up and say's i am, give me the voice traffic. or at least i think thats what happens! but if you set the IP address and listening ports would that increase performance?

    or am i stressing and over complicating things?
     
  6. pablito

    pablito Network Guru Member

    I mention Vonage only as an example. Probably a bad example since Vonage only works with the hardware they sell even if they tend to use Linksys products. You've already configured the SPA for your services.

    If you are able to make and take calls then the service is making an initial connection (like what Vonage does) through the router setting up the channel so that inbound calls work.

    An inbound call doesn't search around the network looking for devices. It can't (firewall), the channel is made by your SPA (or other SIP devices you might have on the network). The SPA then does the magic of directing the call.

    NAT/QOS rules can help if you tend to saturate the bandwidth for other things. If things work without a port forward rule then *don't* put one in, a port forward leaves an open channel for anyone to hit the open port. Leave it as an outbound initiated channel like it is now.

    QOS on the other hand will guarantee enough bandwidth to keep the call clean. Each call need about 80kbs in each direction.
     
  7. willfitz

    willfitz LI Guru Member

    Pablito, i love your style. i really didn't want to poke holes in my firewall and you hit the nail on the head with this.

    i was just worried that the PBX would stop allowing incoming calls as i was unsure of how it was doing it in the first place.

    by the way, you might be able to clear up the comment about allowing the PBX to make the outbound initiated channel.

    what i think you mean is the PBX every couple of seconds sends a message to my VoIP provider (www.blueface.ie) and says i am here if anyone wants to ring and then the router somehow keeps open a port for them few seconds then closes. then the PBX re-initiates the whole process again.

    is this how it works?
     
  8. willfitz

    willfitz LI Guru Member

    Pablito, i love your style. i really didn't want to poke holes in my firewall and you hit the nail on the head with this.

    i was just worried that the PBX would stop allowing incoming calls as i was unsure of how it was doing it in the first place.

    by the way, you might be able to clear up the comment about allowing the PBX to make the outbound initiated channel.

    what i think you mean is the PBX every couple of seconds sends a message to my VoIP provider (www.blueface.ie) and says i am here if anyone wants to ring and then the router somehow keeps open a port for them few seconds then closes. then the PBX re-initiates the whole process again.

    is this how it works?
     
  9. pablito

    pablito Network Guru Member

    aw shucks...:)

    Yes, the device will send a signal keeping the channel open. I don't know how often that happens or if it is provider specific or a config on the device. My PAP2 device works anywhere that has high speed and a DHCP server. Incoming calls always work without any holes being poked. (my cell service is going into the garbage)

    good luck.
     
  10. willfitz

    willfitz LI Guru Member

    thanks for your advice. i'll keep you posted of how i get on over the weekend.
     
  11. mike967

    mike967 LI Guru Member

    Spa 9000 with Spa 400 + Voice Mail

    To all respected Linksysinfo.org Members,

    I have a Spa9000 / Spa400 / Spa2102 and spa942 they are all connected together and everything is working well, however, I have encountered 2 fundamental problems which simply puzzled me.

    Q1. I would like to have voice mail on a analog phone connected to the FXS port on the Spa9000 or Spa2102. Sipura support did indicate that such is possible with the Spa2102 but they will not provide any support because the Spa2102 is not part of the Spa9xxx family. However you can register Spa2102 onto Spa9K with absolutely no problem.

    If it is possible to have voicemail box attached to FXS port on the Spa 9000 or Spa 2102 could someone please advise me as to what the syntax is.


    Q2. From the Automated attendant (IVR) on the Spa9000 I would like user to press 0 (zero) and forward them to specific mail box on the Spa400. I would prefer not to attach any telephone to that extension just forward them directly to the voice mail box.
    Sipura Support is advising that such is not possible, despite the fact that you get 32 voice mail boxes on the Spa400 and you can attach maximum of 16 IP phones to the Spa9K.

    I am confident that every one has dial a company where auto attendant (IVR) says:

    Press 1 for this
    Press 2 for that
    Press 0 to leave a message in our general voice mail box.


    I am desperately attempting to implement Press 0 option.

    Should anyone have any ideas on Q1 or Q2, any feedback would be greatly appreciated,

    Thank-you all in advance,
    Mike
     

Share This Page