What is the difference between a gateway and a router?
A router works by looking at the IP address in the data packet and decides if it is for internal use or if the packet should move outside the network (to the WAN). In a VoIP conversation, you would have a gateway that works for any calls that can not be carried via IP and it moves them to a POTS connection. You generally need both.
For more information: