Description
The Media Gateway Function (MGF) is a critical component within the 3GPP architecture, specifically in the IP Multimedia Subsystem (IMS) and later in the 5G Core (5GC). Its primary role is to act as a translation point for media traffic, converting between different transmission and coding formats. In practical terms, this means it can receive a traditional TDM (Time-Division Multiplexing) voice stream from the Public Switched Telephone Network (PSTN) or a legacy 2G/3G mobile network and transcode it into a packet-based stream (like RTP over IP) for transport over an IP network, and vice-versa. This process involves not just format conversion but also potential adjustments to codecs, packetization timers, and echo cancellation.
Architecturally, the MGF is controlled by a separate signaling entity, historically the Media Gateway Control Function (MGCF) in IMS. This separation of control and media planes (as per the H.248/Megaco protocol) allows for scalable and flexible network design. The MGCF handles the session signaling (e.g., SIP, ISUP), while the MGF executes the media-related commands. In the 5G Core, similar functionality is often integrated into the User Plane Function (UPF) or provided by dedicated network elements for interworking with legacy systems. The MGF interfaces with transport networks on both sides—the circuit-switched trunk interfaces (e.g., E1/T1) and the packet-switched network interfaces (e.g., Ethernet).
Its role extends beyond simple voice. The MGF can handle video media streams and support various codecs like AMR, G.711, and EVS. It is a key enabler for services like VoLTE (Voice over LTE) and VoNR (Voice over New Radio) when calls need to terminate on or originate from a traditional telephone. Without the MGF, seamless communication between next-generation packet networks and the vast installed base of circuit-switched infrastructure would be impossible, making it a cornerstone for network migration and service continuity.
Purpose & Motivation
The MGF was created to solve the fundamental problem of interoperability between the emerging, efficient packet-switched networks (like those based on IP for IMS and later 5G) and the entrenched, global circuit-switched telephony infrastructure. Historically, all telephony was circuit-switched, requiring dedicated physical or logical connections for the duration of a call. The rise of IP promised more efficient bandwidth usage and integrated services but could not communicate natively with the PSTN. The MGF provides the necessary bridge.
Its development was motivated by the need for a smooth, phased migration from legacy networks to all-IP networks like IMS. Operators could not replace their entire network overnight. The MGF allowed them to introduce IP-based core networks while still connecting to existing revenue-generating PSTN services and subscribers on older mobile generations (2G/3G). It addressed the limitations of previous monolithic switches by decomposing the gateway into a separate media plane (MGF) and control plane (MGCF), following the softswitch architecture paradigm. This separation offered greater scalability, vendor interoperability, and the ability to independently upgrade control logic and media processing capabilities.
Classification
Detected Changes Across Releases
from 3GPP Change RequestsSpecific changes extracted from the „Change history“ tables of 3GPP specifications (10 CRs across 2 releases). Complements the general historical overview above with the evidence-based evolution of this function.
Studied in Rel-2, normative work from Rel-18.
In Release 18, the Media Gateway Function (MGF) saw updates to the DCMF (Data Channel Media Function) service to support media processing capabilities. This included a change to the media type value to specifically support Data Channel (DC) media, as used in standalone IMS Data Channel Sessions. These enhancements integrate with the broader IMS media handling framework for data channel traffic.
In Release 19, the MGF saw enhancements focused on optimized media routing and early media handling for UE-Satellite-UE communication scenarios within the IMS. The updates included specific procedures for call setup and mobility during these satellite-based sessions to ensure efficient media flow management. Additionally, clarifications were provided for the Media Correlation ID and the handling of local BDC establishment without a corresponding media component in the initial SDP.
- Terminating local BDC establishment without BDC media component in SDP of incoming INVITE request TS 23.228CR1416
- Call setup of UE-Satellite-UE communication with early media in IMS TS 23.228CR1520
- Mobility procedure for UE-Satellite-UE communication in IMS - continuation of optimized media routing TS 23.228CR1521
- Update on early media handling in UE-Satellite-UE scenario TS 23.228CR1629
- Clarification on Media Correlation ID TS 23.228CR1667
- Adding more event filters for ADC media type TS 23.228CR1544
+ 2 more changes
Explore further
Broader topics and technologies where MGF plays a role.
Defining Specifications
3GPP specifications that define or reference MGF, with the latest known release. Sourced from the 3GPP document catalog — see methodology.
| Specification | Title | Release |
|---|---|---|
| TS 23.228 vj50 | IMS Stage-2 Service Description | Rel-19 |
| TS 23.417 v1700 | IMS Core Component for NGN Architecture | Rel-7 |
| TS 23.517 v1800 | IMS Core Component for NGN Architecture | Rel-8 |
| TS 24.524 vj00 | Hosted Enterprise Services Architecture | Rel-19 |