Description
The IP Multimedia Media Gateway Function (IM-MGW) is a critical functional entity in the IP Multimedia Subsystem (IMS) architecture, responsible for all media-related processing in the user plane. It is controlled by the Media Gateway Control Function (MGCF) or, in later architectures, the Multimedia Resource Function Controller (MRFC) using protocols like H.248 (Megaco). The IM-MGW's primary role is to provide interoperability between the packet-switched IMS domain (using RTP/RTCP over IP) and legacy circuit-switched networks like the Public Switched Telephone Network (PSTN) or legacy cellular networks (using TDM or ATM bearer streams). It sits at the boundary between these domains, converting media streams in real-time.
Functionally, the IM-MGW executes several key media processing tasks. The core function is transcoding, which converts audio and video codecs between different formats (e.g., from AMR-NB used in a circuit-switched call to G.711 or EVS used in an IMS VoIP call). It also performs echo cancellation, tone generation and detection (e.g., DTMF), playout of announcements, and supports conferencing by mixing multiple media streams. For a call between an IMS subscriber and a PSTN subscriber, the MGCF sets up the call signalling, and then instructs the IM-MGW via H.248 to create a context with terminations: one termination facing the IMS network (IP-based RTP) and another facing the PSTN (TDM timeslot). The IM-MGW then bridges these terminations, performing the necessary media conversion bi-directionally.
Architecturally, the IM-MGW is part of the broader Media Gateway (MGW) family in 3GPP but is specifically dedicated to IMS services. It interfaces with the MGCF for call-related control, the MRFC for advanced media services like conferencing and announcements, and the Breakout Gateway Control Function (BGCF) for routing decisions. Its internal components include digital signal processors (DSPs) for media processing, IP network interfaces, and legacy network interfaces (e.g., E1/T1 trunks). By centralizing media processing functions, the IM-MGW allows the IMS core to remain purely SIP-based and agnostic to the underlying bearer technology, enabling seamless service delivery across heterogeneous networks.
Purpose & Motivation
The IM-MGW was created to solve the fundamental problem of interworking between the new, all-IP IMS network introduced in Release 5 and the vast installed base of legacy circuit-switched networks (PSTN and 2G/3G PLMN). IMS endpoints communicate using SIP and RTP over IP, while legacy networks use ISUP/TDM or other circuit-switched protocols. Without a media gateway, voice and video calls between these domains would be impossible, severely limiting IMS adoption.
Its creation was motivated by the need for a smooth, phased migration to IMS. Operators could not instantly replace all legacy switches and handsets. The IM-MGW, controlled by the MGCF, provided a bridge that allowed IMS subscribers to call anyone on the PSTN and vice versa, protecting existing investments and ensuring service continuity. It addressed the limitation of earlier VoIP gateways which were not integrated with the IMS control architecture (CSCFs, HSS). The IM-MGW is specifically designed to be controlled via standard protocols (H.248) by IMS control functions, enabling sophisticated service blending and policy-based media manipulation.
Furthermore, the IM-MGW solved the problem of media resource requirements within IMS. Even for pure IMS-to-IMS calls, services like conferencing, transcoding between different IMS codecs, and announcement playback require dedicated media processing resources. The IM-MGW, under the control of an MRFC, provides these resources as a shared, scalable pool for the entire IMS network. This separates media processing from call control, following the IMS principle of a layered architecture, which increases flexibility, scalability, and simplifies the introduction of new media features.
Classification
Detected Changes Across Releases
from 3GPP Change RequestsSpecific changes extracted from the „Change history“ tables of 3GPP specifications (4 CRs across 3 releases). Complements the general historical overview above with the evidence-based evolution of this function.
Studied in Rel-5, normative work from Rel-15.
In Release 15, the primary new introduction for the IM-MGW function was the capability for reporting Media Bearer information, specifically for the S8 Home Routing (S8HR) scenario. This enhancement allows the network to gather and report details about the media bearers being used in sessions.
In Release 17, the enhancement for the IM-MGW function specifically addressed lawful interception requirements related to the handling of special media types. This was driven by the CR titled "IMS: Addressing the interception due to the application of special media," indicating updates to procedures for monitoring media sessions. The changes ensure that the Media Gateway Control Function (MGCF) and the associated IP Multimedia Gateway Functions (IM-MGW) can properly support interception when specialized media resources, such as those for announcements or conferencing, are applied.
- IMS: Addressing the interception due to the application of special media TS 33.127CR0119
In Release 18, the primary new development for the IM-MGW function was the introduction of Lawful Interception (LI) capabilities for 5G Media Streaming (5GMS) on the control plane. This enhancement specifically integrates LI functionality within the media gateway control framework, which involves the Media Gateway Control Function (MGCF) that manages trunking media gateways. The update ensures that the control and monitoring of media sessions for 5GMS services comply with standardized interception requirements.
- LI of 5G Media Streaming (5GMS) (Control plane) TS 33.127CR0186
Explore further
Broader topics and technologies where IM-MGW plays a role.
Defining Specifications
3GPP specifications that define or reference IM-MGW, with the latest known release. Sourced from the 3GPP document catalog — see methodology.
| Specification | Title | Release |
|---|---|---|
| TS 23.417 v1700 | IMS Core Component for NGN Architecture | Rel-7 |
| TS 23.517 v1800 | IMS Core Component for NGN Architecture | Rel-8 |
| TR 23.981 vj00 | IPv4 IMS Interworking and Migration Study | Rel-19 |
| TS 26.454 vj00 | EVS Codec Mapping for 3G CS Networks | Rel-19 |
| TS 29.163 vj00 | Interworking between 3GPP IM CN and CS networks | Rel-19 |
| TS 29.235 vj00 | SIP-I CS Core Network Interworking | Rel-19 |
| TS 29.332 vj00 | MGCF-IM-MGW Interface Protocol (Mn) | Rel-19 |
| TS 33.107 vj00 | Lawful Interception Architecture & Functions | Rel-19 |
| TS 33.108 vj00 | LI Handover Interface Specification | Rel-19 |
| TS 33.127 vj50 | Lawful Interception Architecture and Functions | Rel-19 |