Recording metadata

The SIPREC INVITE body includes an RFC 7866 recording metadata XML document alongside the SDP offer.

Example metadata

<?xml version="1.0" encoding="UTF-8"?>
<recording xmlns="urn:ietf:params:xml:ns:recording:1"
           xmlns:msw="http://www.metaswitch.com/sbc/recording/V1.0">
  <datamode>complete</datamode>

  <session session_id="okpwkCOIEfGU8gBQVpIAMg==">
    <start-time>2026-03-19T11:41:57Z</start-time>
  </session>

  <participant participant_id="okpwGCOIEfGU8gBQVpIAMg==">
    <nameID aor="sip:3615550123@10.232.22.31"/>
  </participant>
  <participant participant_id="okpwVCOIEfGU8gBQVpIAMg==">
    <nameID aor="sip:3615550122@10.232.22.31"/>
  </participant>

  <stream stream_id="okpxWCOIEfGU8gBQVpIAMg=="
          session_id="okpwkCOIEfGU8gBQVpIAMg==">
    <label>1</label>
  </stream>
  <stream stream_id="okpxiiOIEfGU8gBQVpIAMg=="
          session_id="okpwkCOIEfGU8gBQVpIAMg==">
    <label>2</label>
  </stream>

  <participantsessionassoc participant_id="okpwGCOIEfGU8gBQVpIAMg=="
                           session_id="okpwkCOIEfGU8gBQVpIAMg==">
    <associate-time>2026-03-19T11:41:57Z</associate-time>
  </participantsessionassoc>
  <participantsessionassoc participant_id="okpwVCOIEfGU8gBQVpIAMg=="
                           session_id="okpwkCOIEfGU8gBQVpIAMg==">
    <associate-time>2026-03-19T11:41:57Z</associate-time>
  </participantsessionassoc>

  <participantstreamassoc participant_id="okpwGCOIEfGU8gBQVpIAMg==">
    <send>okpxWCOIEfGU8gBQVpIAMg==</send>
    <recv>okpxiiOIEfGU8gBQVpIAMg==</recv>
  </participantstreamassoc>
  <participantstreamassoc participant_id="okpwVCOIEfGU8gBQVpIAMg==">
    <send>okpxiiOIEfGU8gBQVpIAMg==</send>
    <recv>okpxWCOIEfGU8gBQVpIAMg==</recv>
  </participantstreamassoc>

  <msw:extensiondata>
    <metaswitchRecordingMetadata>
      <callType>interconnect</callType>
      <callingPartyNumber>3615550123</callingPartyNumber>
      <systemName>orchestration</systemName>
    </metaswitchRecordingMetadata>
  </msw:extensiondata>
</recording>

Standard RFC 7866 elements

Element Description
<session> Unique session_id and call start time.
<participant> One per call participant. Carries the AOR (and display name when available).
<stream> One per audio stream. The <label> matches the SDP a=label attribute, letting you correlate XML to SDP.
<participantsessionassoc> Binds a participant to a session.
<participantstreamassoc> Binds a participant to its <send> and <recv> streams. This is the authoritative mapping between participants and streams — do not infer it from stream order.

Alianza extension fields (<msw:extensiondata>)

Alianza populates a proprietary extension block with additional call metadata.

Field XML element Description
Call type <callType> interconnect (typical for Alianza deployments). Values originating and terminating may appear in future configurations.
Calling party number <callingPartyNumber> The username portion of the calling party's AOR.
System name <systemName> Identifies the Alianza instance that originated the recording session.

If you need additional metadata fields — for example, to correlate sessions with your own user or account identifiers — contact your Alianza onboarding representative. Fields can be delivered in the XML extension block or as additional SIP headers.