IMS
MRFC/MRFP

MRFC stands for Media Resource Function Controller, and MRFP stands for Media Resource Function Processor. Together they provide media resource control and media processing functions for IMS services.

The MRFC handles service control decisions and signaling coordination, while the MRFP performs the actual media handling such as mixing, announcements, tone generation, and transcoding. These functions are most visible when an IMS service needs network media resources rather than a direct end-to-end media path between two UEs.

Contents

Role of MRFC and MRFP

The MRFC is the control-plane part of the Media Resource Function. It receives service requests from IMS application or control functions, decides which media resources are needed, and instructs the MRFP to allocate or release those resources.

The MRFP is the user-plane media processor. It terminates or anchors RTP streams and performs the media operation requested by the MRFC. Typical operations include playing announcements, collecting tones, mixing conference media, and transcoding between incompatible codecs.

When MRF Is Used

An IMS session normally tries to establish media directly between endpoints using the codec and media parameters negotiated in SDP. The MRF becomes relevant when direct endpoint negotiation is not enough or when a service requires network-controlled media treatment.

  • Codec mismatch: one endpoint supports a codec that the other endpoint cannot use.
  • Announcement service: the network needs to play a tone or announcement before or during a call.
  • Conferencing: multiple RTP streams need to be mixed into a conference bridge.
  • Media anchoring: the network needs a controlled media point for service logic or policy enforcement.

Signaling and Media Path

In the SIP signaling path, the UE sends INVITE through the P-CSCF and other IMS control nodes. If service logic determines that media resources are required, the call control side can involve the MRFC. The MRFC then controls the MRFP so the SDP answer or subsequent SIP messages steer RTP media toward the MRFP.

From the UE perspective, this usually appears as a change in SDP media address, port, or codec list. The UE still sends and receives RTP according to the negotiated SDP, but the actual peer for media may be the MRFP rather than the remote UE directly.

Codec and Transcoding

Transcoding is needed when two endpoints cannot agree on a common codec. In that case, the MRFP can receive RTP encoded with one codec on one side and transmit RTP encoded with another codec on the other side.

For example, one UE may offer AMR-WB while the other endpoint only accepts AMR-NB. The MRFC can allocate MRFP resources and coordinate the SDP negotiation so each side uses a codec it supports while the MRFP converts the media between them.

Troubleshooting Checkpoints

When debugging an MRFC/MRFP-related call, check both signaling and media. SIP may look successful even when RTP fails because the SDP points to the wrong address, a port is blocked, or the codec selected by the media resource is not actually supported by one endpoint.

  • Check the INVITE and 200 OK SDP for `m=audio`, `c=`, `a=rtpmap`, and `a=fmtp` values.
  • Confirm whether the media IP and port changed to an MRFP address.
  • Verify that both call legs have compatible codec payload types and packetization settings.
  • Check RTP flow in both directions; one-way audio often indicates a media-path or transcoding issue rather than a SIP dialog issue.
  • Confirm that the MRFC released media resources after call teardown.