In IP telephony a gateway is a network device that converts voice and fax calls in real time between public switched telephone networks (PSTN) and an IP network. The primary functions of an IP gateway include voice and fax compression/decompression, packetisation, call routing, and control signalling.