Media Gateway, also commonly referred to as VoIP Gateway is device which provides connection between an endpoint on VoIP packet-switched network and PSTN circuit-switched network.
The gateway translates between transmission formats and the communication protocols that are used on each side. The gateway packetizes the voice and routes it over VoIP network. In carrier class system, media gateways are provided as stand-alone devices.