IM-MGW

IP Multimedia Media Gateway Function

Core Network
Introduced in Rel-5
The IM-MGW is a media gateway within the IMS that performs media translation and processing between different network types and codecs. It enables interworking between packet-switched IMS networks and circuit-switched networks (like PSTN/PLMN), and handles media functions like transcoding, echo cancellation, and conferencing for multimedia sessions.

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.

Key Features

  • Performs media transcoding between IMS codecs (e.g., AMR-WB, EVS) and legacy codecs (e.g., G.711, AMR-NB)
  • Provides interworking between packet-switched (IP/RTP) and circuit-switched (TDM/ATM) bearer networks
  • Executes media processing functions like echo cancellation, tone handling, and conference bridging
  • Controlled by MGCF or MRFC using the H.248 (Megaco) control protocol
  • Supports lawful interception for media streams as required
  • Acts as a centralised resource for IMS media services, enabling scalable service deployment

Evolution Across Releases

Rel-5 Initial

Initial introduction with the IMS architecture. Defined the IM-MGW's basic functions for interworking with CS networks, including transcoding and bearer control. Established the H.248 control interface with the MGCF and its role in supporting IMS-PSTN/CS calls.

Enhanced support for video services and additional codecs. Introduced tighter integration with the Multimedia Resource Function (MRF) for advanced media services like conferencing and announcements. Clarified support for bearer-independent call control (BICC) and other transport options.

Support for IMS Centralized Services (ICS) and Voice Call Continuity (VCC). Enhanced capabilities for supporting dual-radio devices and seamless handovers between CS and IMS domains, requiring more dynamic media path control.

Alignment with LTE/EPC and the introduction of SRVCC (Single Radio Voice Call Continuity). The IM-MGW became critical for handovers of voice calls from LTE (VoLTE/IMS) to 2G/3G CS networks, requiring optimised media path switching and coordination with the MSC Server.

Enhancements for emergency calls and location-based services over IMS. Improved support for transcoding priority and resource allocation for emergency sessions. Continued evolution for SRVCC optimisation.

Defining Specifications

SpecificationTitle
TS 23.417 3GPP TS 23.417
TS 23.517 3GPP TS 23.517
TS 23.981 3GPP TS 23.981
TS 26.454 3GPP TS 26.454
TS 29.163 3GPP TS 29.163
TS 29.235 3GPP TS 29.235
TS 29.332 3GPP TS 29.332
TS 33.107 3GPP TR 33.107
TS 33.108 3GPP TR 33.108
TS 33.127 3GPP TR 33.127