IMS - RCS
RCS : Presence Subscription/Notify

Following is an example of how UE interacts with Presence Server and register its own information to the server and retrieve infromation of others from the presence server. In short, this is an example showing the Presence Subscription/Notify Model. This process is highly dependent on UE implentation and network requirement. So this low may be different from what you get from your UE. Just take this as a reference and try to get familiar with overall flow and some key parameters in each SIP / HTTP message.  As you see here, a lot of transactions in this model happens in both SIP and HTTP.

No

Direction

Protocol

Message

1

UA1 --> NW

SIP

REGISTER sip:test-rcs.com

2

UA1 <-- NW

SIP

200 OK

3

UA1 --> NW

SIP

SUBSCRIBE sip:1234567890@test-rcs.com

4

UA1 <-- NW

SIP

200 OK

5

UA1 <-- NW

SIP/XML

NOTIFY sip:1234567890@192.168.1.1:6000

6

UA1 --> NW

SIP

200 OK

7

UA1 --> NW

SIP

PUBLISH sip:1234567890@test-rcs.com

8

UA1 <-- NW

SIP

200 OK

9

UA1 --> NW

HTTP

GET / HTTP/1.1

10

UA1 <-- NW

HTTP

HTTP/1.1 200 OK

11

UA1 --> NW

HTTP

GET /? Parameters

12

UA1 <-- NW

HTTP/XML

HTTP/1.1 200 OK

13

UA1 --> NW

SIP

SUBSCRIBE sip:+14448880000@test-rcs.com

14

UA1 <-- NW

SIP

200 OK

15

UA1 --> NW

SIP/XML

NOTIFY sip:1234567890@192.168.1.1:6000

16

UA1 --> NW

SIP

200 OK

17

UA1 --> NW

SIP/XML

SUBSCRIBE sip:1234567890@test-rcs.com

18

UA1 <-- NW

SIP

200 OK

19

UA1 <-- NW

SIP/XML

NOTIFY sip:1234567890@192.168.1.1:6000 | pidf-diff

20

UA1 --> NW

SIP

200 OK

21

UA1 --> NW

SIP

SUBSCRIBE sip:+14448880000@test-rcs.com

22

UA1 <-- NW

SIP

200 OK

23

UA1 <-- NW

SIP/XML

NOTIFY sip:1234567890@192.168.1.1:6000

24

UA1 --> NW

SIP

200 OK

(7)  PUBLISH sip:1234567890@test-rcs.com

PUBLISH sip:1234567890@test-rcs.com SIP/2.0

Accept: application/pidf+xml

Expires: 3600

Content-Type: application/pidf+xml

This SIP message clip highlights the following parameters: Expires, Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Event: presence

Route: <sip:192.168.1.2:61368;lr>

Require: sec-agree

Proxy-Require: sec-agree

Contact: <sip:1234567890@192.168.1.1:5060>

P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000000

From: <sip:1234567890@test-rcs.com>;tag=3538279357

To: <sip:1234567890@test-rcs.com>

Call-ID: 500459602@192.168.1.1

CSeq: 1 PUBLISH

Max-Forwards: 70

This SIP message clip highlights the following parameters: Route, Contact, CSeq, Call-ID, P-Access-Network-Info, From, To, Max-Forwards, Require, Proxy-Require. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Security-Verify: ipsec-3gpp;q=0.1;alg=hmac-md5-96;ealg=null;prot=esp;mod=trans;spi-c=610868849;spi-s=647531074;port-c=61367;port-s=61368

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK842176796smg;transport=TCP;rport

Content-Length: 2911

This SIP message clip highlights the following parameters: Via, Content-Length. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

<?xml version="1.0" encoding="UTF-8"?>

<presence

    xmlns="urn:ietf:params:xml:ns:pidf"

    xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"

    xmlns:op="urn:oma:xml:prs:pidf:oma-pres"

    xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"

    xmlns:cipid="urn:ietf:params:xml:ns:pidf:cipid"

    xmlns:caps="urn:ietf:params:xml:ns:pidf:caps"

    entity="sip:1234567890@test-rcs.com">

  <tuple id="SessModeMessa">

    <status>

      <basic>open</basic>

    </status>

    <op:service-description>

      <op:service-id>org.openmobilealliance:ChatSession</op:service-id>

      <op:version>2.0</op:version>

      <op:description>Session Mode Messaging</op:description>

    </op:service-description>

    <contact>sip:1234567890@test-rcs.com</contact>

  </tuple>

  <tuple id="FileTransfer1">

    <status>

      <basic>open</basic>

    </status>

    <op:service-description>

      <op:service-id>org.openmobilealliance:File-Transfer</op:service-id>

      <op:version>1.0</op:version>

      <op:description>File Transfer</op:description>

    </op:service-description>

    <contact>sip:1234567890@test-rcs.com</contact>

  </tuple>

  <tuple id="DiscoveryPres">

    <status>

      <basic>open</basic>

    </status>

    <op:service-description>

      <op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcse.dp</op:service-id>

      <op:version>1.0</op:version>

      <op:description>DiscoveryPresence</op:description>

    </op:service-description>

    <contact>sip:1234567890@test-rcs.com</contact>

  </tuple>

  <tuple id="VOLTE14784946">

    <status>

      <basic>open</basic>

    </status>

    <caps:servcaps>

      <caps:audio>true</caps:audio>

      <caps:video>true</caps:video>

      <caps:duplex>

        <caps:supported>

          <caps:full/>

        </caps:supported>

      </caps:duplex>

    </caps:servcaps>

    <op:service-description>

      <op:service-id>org.3gpp.urn:urn-7:3gpp-service.ims.icsi.mmtel</op:service-id>

      <op:version>1.0</op:version>

      <op:description>IPVideoCall</op:description>

    </op:service-description>

    <contact>sip:1234567890@test-rcs.com</contact>

  </tuple>

  <tuple id="FtThumbnail14">

    <status>

      <basic>open</basic>

    </status>

    <op:service-description>

      <op:service-id>org.openmobilealliance:File-Transfer-thumb</op:service-id>

      <op:version>2.0</op:version>

      <op:description>FtThumbnail</op:description>

    </op:service-description>

    <contact>sip:1234567890@test-rcs.com</contact>

  </tuple>

  <tuple id="FullStoreGrpC">

    <status>

      <basic>open</basic>

    </status>

    <op:service-description>

      <op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcs.fullsfgroupchat</op:service-id>

      <op:version>1.0</op:version>

      <op:description>FullStoreGrpChat</op:description>

    </op:service-description>

    <contact>sip:1234567890@test-rcs.com</contact>

  </tuple>

</presence>

(8) 200 OK

SIP/2.0 200 OK

Max-Forwards: 70

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK842176796smg;transport=TCP;rport=5414

From: <sip:1234567890@test-rcs.com>;tag=3538279357

To: <sip:1234567890@test-rcs.com>;tag=80027c3674674a1abf7ad6c90e0cf4d2

Call-ID: 500459602@192.168.1.1

CSeq: 1 PUBLISH

This SIP message clip highlights the following parameters: Via, CSeq, Call-ID, From, To, Max-Forwards. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

SIP-ETag: 94736db7d9754c9399b71501799dd827

Expires: 3600

User-Agent: Test-Rcs/fb0aa0d PresenceService_VNID[1]

Content-Length: 0

This SIP message clip highlights the following parameters: Expires, Content-Length, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(9)-(12) RCS Auto Configuration

These 4 steps are for RCS Auto configuration which happens between UE and Auto Configuration Server. This process is explained in separate page : RCS Auto Configuration.

(13) SUBSCRIBE sip:+14448880000@test-rcs.com

SUBSCRIBE sip:+14448880000@test-rcs.com SIP/2.0

Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK

P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000000

User-Agent: T-Mobile VoLTE-RCS-ePDG-IR94 SEC/OKC 5.1.1

This SIP message clip highlights the following parameters: P-Access-Network-Info, Allow, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept-Encoding: gzip

Expires: 0

This SIP message clip highlights the following parameters: Expires. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Event: presence

Accept-Contact: *;+g.oma.sip-im;explicit;require

This SIP message clip highlights the following parameters: Accept-Contact. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept: application/pidf+xml,multipart/related,application/rlmi+xml

P-Preferred-Identity: <sip:1234567890@test-rcs.com>

Contact: <sip:1234567890@192.168.1.1:6000>;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session,urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.filetransfer,urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";+g.3gpp.smsip;video;+sip.instance="<urn:gsma:imei:35375607-416186-0>"

Require: sec-agree

Proxy-Require: sec-agree

Route: <sip:192.168.1.2:61368;lr>

From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=893029302

To: <sip:+14448880000@test-rcs.com>

Call-ID: 54560287@192.168.1.1

CSeq: 1 SUBSCRIBE

Max-Forwards: 70

This SIP message clip highlights the following parameters: Route, Contact, CSeq, Call-ID, From, To, Max-Forwards, Require, Proxy-Require. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Security-Verify: ipsec-3gpp;q=0.1;alg=hmac-md5-96;ealg=null;prot=esp;mod=trans;spi-c=610868849;spi-s=647531074;port-c=61367;port-s=61368

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK4200390929smg;transport=TCP;rport

Content-Length: 0

This SIP message clip highlights the following parameters: Via, Content-Length. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(14) 200 OK

SIP/2.0 200 OK

Max-Forwards: 70

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK4200390929smg;transport=TCP;rport=5414

From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=893029302

To: <sip:+14448880000@test-rcs.com>;tag=4847ed410baf41e7ba2e6e9b4064ae34

Call-ID: 54560287@192.168.1.1

CSeq: 1 SUBSCRIBE

Expires: 0

Contact: <sip:192.168.1.2:6061;transport=tcp>

This SIP message clip highlights the following parameters: Via, Contact, Expires, CSeq, Call-ID, From, To, Max-Forwards. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept-Encoding: gzip

Record-Route: <sip:192.168.1.2:61368;lr>

User-Agent: Test-Rcs/fb0aa0d PresenceService_VNID[1]

Content-Length: 0

This SIP message clip highlights the following parameters: Content-Length, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(15) NOTIFY sip:1234567890@192.168.1.1:6000

NOTIFY sip:1234567890@192.168.1.1:6000 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.2:61368;branch=z9hG4bK0b1a871d628342d5a04588cdaffdce2726;transport=udp

Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bKa94dae3c1c3b4946bf36da294cb2843c

Max-Forwards: 69

From: sip:presence@test-rcs.com;tag=4847ed410baf41e7ba2e6e9b4064ae34

To: sip:anonymous@anonymous.invalid;tag=893029302

This SIP message clip highlights the following parameters: Via, From, To, Max-Forwards. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Event: presence

Contact: sip:presence@test-rcs.com:6061

Content-Type: application/pidf+xml

This SIP message clip highlights the following parameters: Contact, Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Subscription-State: terminated;reason=timeout

Accept-Encoding: gzip

Content-Encoding: gzip

Content-Length: 539

CSeq: 1 NOTIFY

Call-ID: 54560287@192.168.1.1

User-Agent: Test-Rcs/fb0aa0d PresenceService_VNID[1]

This SIP message clip highlights the following parameters: CSeq, Call-ID, Content-Length, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Record-Route: <sip:192.168.1.2:61368;lr>

<?xml version="1.0" encoding="UTF-8"?>

<presence

   xmlns="urn:ietf:params:xml:ns:pidf"

   xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"

   xmlns:op="urn:oma:xml:prs:pidf:oma-pres"

   xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"

   xmlns:cipid="urn:ietf:params:xml:ns:pidf:cipid"

   xmlns:caps="urn:ietf:params:xml:ns:pidf:caps"

   entity="sip:+14448880000@test-rcs.com">

<tuple id="SessModeMessa">

<status>

<basic>open

</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:ChatSession

</op:service-id>

<op:version>2.0

</op:version>

<op:description>Session Mode Messaging

</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com

</contact>

</tuple>

<tuple id="FileTransfer2">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer</op:service-id>

<op:version>1.0</op:version>

<op:description>File Transfer</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

<tuple id="DiscoveryPres">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcse.dp</op:service-id>

<op:version>1.0</op:version>

<op:description>DiscoveryPresence</op:description></op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

<tuple id="VOLTE27563040">

<status>

<basic>open</basic>

</status>

<caps:servcaps><caps:audio>true</caps:audio>

<caps:video>false</caps:video>

<caps:duplex><caps:supported><caps:full /></caps:supported></caps:duplex>

</caps:servcaps>

<op:service-description><op:service-id>org.3gpp.urn:urn-7:3gpp-service.ims.icsi.mmtel</op:service-id>

<op:version>1.0</op:version>

<op:description>IPVideoCall</op:description></op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

<tuple id="FtThumbnail27">

<status>

<basic>open</basic>

</status>

<op:service-description><op:service-id>org.openmobilealliance:File-Transfer-thumb</op:service-id>

<op:version>2.0</op:version>

<op:description>FtThumbnail</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

</presence>

(16) 200 OK

SIP/2.0 200 OK

P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000000

From: <sip:presence@test-rcs.com>;tag=4847ed410baf41e7ba2e6e9b4064ae34

To: <sip:anonymous@anonymous.invalid>;tag=893029302

Via: SIP/2.0/UDP 192.168.1.2:61368;branch=z9hG4bK0b1a871d628342d5a04588cdaffdce2726;transport=udp,SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bKa94dae3c1c3b4946bf36da294cb2843c

Call-ID: 54560287@192.168.1.1

CSeq: 1 NOTIFY

Contact: <sip:1234567890@192.168.1.1:6000>;+sip.instance="<urn:gsma:imei:35375607-416186-0>"

Content-Length: 0

This SIP message clip highlights the following parameters: Via, Contact, CSeq, Call-ID, P-Access-Network-Info, From, To, Content-Length. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(17) SUBSCRIBE sip:1234567890@test-rcs.com

SUBSCRIBE sip:1234567890@test-rcs.com SIP/2.0

Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK

P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000000

User-Agent: T-Mobile VoLTE-RCS-ePDG-IR94 SEC/OKC 5.1.1

This SIP message clip highlights the following parameters: P-Access-Network-Info, Allow, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept-Encoding: gzip

Content-Disposition: recipient-list

Content-Type: application/resource-lists+xml

Expires: 30

This SIP message clip highlights the following parameters: Expires, Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Event: presence

Supported: eventlist

Accept-Contact: *;+g.oma.sip-im;explicit;require

This SIP message clip highlights the following parameters: Accept-Contact, Supported. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept: application/pidf+xml,application/pidf-diff+xml,multipart/related,application/rlmi+xml,application/simple-filter+xml

P-Preferred-Identity: <sip:1234567890@test-rcs.com>

Contact: <sip:1234567890@192.168.1.1:6000>;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session,urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.filetransfer,urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";+g.3gpp.smsip;video;+sip.instance="<urn:gsma:imei:35375607-416186-0>"

Require: recipient-list-subscribe,sec-agree

Proxy-Require: sec-agree

Route: <sip:192.168.1.2:61368;lr>

From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=1556288602

To: <sip:1234567890@test-rcs.com>

Call-ID: 2779282707@192.168.1.1

CSeq: 1 SUBSCRIBE

Max-Forwards: 70

This SIP message clip highlights the following parameters: Route, Contact, CSeq, Call-ID, From, To, Max-Forwards, Require, Proxy-Require. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Security-Verify: ipsec-3gpp;q=0.1;alg=hmac-md5-96;ealg=null;prot=esp;mod=trans;spi-c=610868849;spi-s=647531074;port-c=61367;port-s=61368

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK2784939685smg;transport=TCP;rport

Content-Length: 414

This SIP message clip highlights the following parameters: Via, Content-Length. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

<?xml version="1.0" encoding="UTF-8"?>

<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <list name="list-1">

    <entry uri="sip:+14448880002@test-rcs.com"/>

    <entry uri="sip:+14448880001@test-rcs.com"/>

    <entry uri="tel:+14448880009"/>

    <entry uri="sip:+14448880003@test-rcs.com"/>

  </list>

</resource-lists>

(18) 200 OK

SIP/2.0 200 OK

Max-Forwards: 70

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK2784939685smg;transport=TCP;rport=5414

From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=1556288602

To: <sip:1234567890@test-rcs.com>;tag=788f02d2d5ad41afaaa3f12a3f9bf2d7

Call-ID: 2779282707@192.168.1.1

CSeq: 1 SUBSCRIBE

Expires: 30

Contact: <sip:192.168.1.2:6061;transport=tcp>

This SIP message clip highlights the following parameters: Via, Contact, Expires, CSeq, Call-ID, From, To, Max-Forwards. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept-Encoding: gzip

Record-Route: <sip:192.168.1.2:61368;lr>

User-Agent: Test-Rcs/fb0aa0d PresenceService_VNID[1]

Content-Length: 0

This SIP message clip highlights the following parameters: Content-Length, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(19) NOTIFY sip:1234567890@192.168.1.1:6000 | pidf-diff

NOTIFY sip:1234567890@192.168.1.1:6000 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.2:61368;branch=z9hG4bK0b1a871d628342d5a04588cdaffdce2728;transport=udp

Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bK15a23fab8c644352b7d6347f9d335218

Max-Forwards: 69

From: sip:presence@test-rcs.com;tag=788f02d2d5ad41afaaa3f12a3f9bf2d7

To: sip:anonymous@anonymous.invalid;tag=1556288602

This SIP message clip highlights the following parameters: Via, From, To, Max-Forwards. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Event: presence

Contact: sip:presence@test-rcs.com:6061

Content-Type: multipart/related;type="application/rlmi+xml";start="<sipanonymous@anonymous.invalid_d1bb7>";boundary="9b52c"

This SIP message clip highlights the following parameters: Contact, Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Subscription-State: active;expires=30

Accept: application/rlmi+xml

Accept-Encoding: gzip

Content-Encoding: gzip

Require: eventlist

Content-Length: 896

CSeq: 1 NOTIFY

Call-ID: 2779282707@192.168.1.1

User-Agent: Test-Rcs/fb0aa0d PresenceService_VNID[1]

This SIP message clip highlights the following parameters: CSeq, Call-ID, Content-Length, User-Agent, Require. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Record-Route: <sip:192.168.1.2:61368;lr>

MIME Multipart Media Encapsulation, Type: multipart/related, Boundary: "9b52c"

Content-ID: <sipanonymous@anonymous.invalid_d1bb7>

Content-Transfer-Encoding: binary

Content-Type: application/rlmi+xml; charset=utf-8

This SIP message clip highlights the following parameters: Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

<?xml version="1.0" encoding="utf-8"?>

<list

   xmlns="urn:ietf:params:xml:ns:rlmi"

   uri="sip:1234567890@test-rcs.com" version="1" fullState="false">

<resource uri="sip:+14448880002@test-rcs.com">

<instance id="001" state="active" cid="sip14448880002@test-rcs.com_7edaf" />

</resource>

<resource uri="sip:+14448880001@test-rcs.com">

<instance id="002" state="active" cid="sip14448880001@test-rcs.com_dc9ae" />

</resource>

<resource uri="tel:+14448880009" />

<resource uri="sip:+14448880003@test-rcs.com">

<instance id="003" state="active" cid="sip14448880003@test-rcs.com_1478a" />

</resource>

</list>

--9b52c

Content-ID: <sip14448880002@test-rcs.com_7edaf>

Content-Transfer-Encoding: binary

Content-Type: application/pidf-diff+xml; charset=utf-8

This SIP message clip highlights the following parameters: Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

<?xml version="1.0" encoding="UTF-8"?>

<p:pidf-full

     xmlns="urn:ietf:params:xml:ns:pidf"

     xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"

     xmlns:op="urn:oma:xml:prs:pidf:oma-pres"

     xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"

     xmlns:cipid="urn:ietf:params:xml:ns:pidf:cipid"

     xmlns:caps="urn:ietf:params:xml:ns:pidf:caps"

     xmlns:p="urn:ietf:params:xml:ns:pidf-diff"

     entity="sip:+14448880002@test-rcs.com" version="1">

<tuple id="SessModeMessa">

<status>

<basic>open</basic></status>

<op:service-description>

<op:service-id>org.openmobilealliance:ChatSession</op:service-id>

<op:version>2.0</op:version>

<op:description>Session Mode Messaging</op:description>

</op:service-description>

<contact>sip:+14448880002@test-rcs.com</contact>

</tuple>

<tuple id="FileTransfer2">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer</op:service-id>

<op:version>1.0</op:version>

<op:description>File Transfer</op:description>

</op:service-description>

<contact>sip:+14448880002@test-rcs.com</contact>

</tuple>

<tuple id="DiscoveryPres">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcse.dp</op:service-id>

<op:version>1.0</op:version>

<op:description>DiscoveryPresence</op:description>

</op:service-description>

<contact>sip:+14448880002@test-rcs.com</contact>

</tuple>

<tuple id="VOLTE27563040">

<status>

<basic>open</basic>

</status>

<caps:servcaps>

<caps:audio>true</caps:audio>

<caps:video>false</caps:video>

<caps:duplex>

<caps:supported><caps:full /></caps:supported>

</caps:duplex>

</caps:servcaps>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-service.ims.icsi.mmtel</op:service-id>

<op:version>1.0</op:version>

<op:description>IPVideoCall</op:description>

</op:service-description>

<contact>sip:+14448880002@test-rcs.com</contact>

</tuple>

<tuple id="FtThumbnail27">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer-thumb</op:service-id>

<op:version>2.0</op:version>

<op:description>FtThumbnail</op:description>

</op:service-description>

<contact>sip:+14448880002@test-rcs.com</contact>

</tuple>

</p:pidf-full>

--9b52c

Content-ID: <sip14448880001@test-rcs.com_dc9ae>

Content-Transfer-Encoding: binary

Content-Type: application/pidf-diff+xml; charset=utf-8

This SIP message clip highlights the following parameters: Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

<?xml version="1.0" encoding="UTF-8"?>

<p:pidf-full

    xmlns="urn:ietf:params:xml:ns:pidf"

    xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"

    xmlns:op="urn:oma:xml:prs:pidf:oma-pres"

    xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"

    xmlns:cipid="urn:ietf:params:xml:ns:pidf:cipid"

    xmlns:caps="urn:ietf:params:xml:ns:pidf:caps"

    xmlns:p="urn:ietf:params:xml:ns:pidf-diff"

    entity="sip:+14448880001@test-rcs.com" version="1">

<tuple id="SessModeMessa">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:ChatSession</op:service-id>

<op:version>2.0</op:version>

<op:description>Session Mode Messaging</op:description>

</op:service-description>

<contact>sip:+14448880001@test-rcs.com</contact>

</tuple>

<tuple id="FileTransfer2">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer</op:service-id>

<op:version>1.0</op:version>

<op:description>File Transfer</op:description>

</op:service-description>

<contact>sip:+14448880001@test-rcs.com</contact>

</tuple>

<tuple id="DiscoveryPres">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcse.dp</op:service-id>

<op:version>1.0</op:version>

<op:description>DiscoveryPresence</op:description>

</op:service-description>

<contact>sip:+14448880001@test-rcs.com</contact>

</tuple>

<tuple id="VOLTE27563040">

<status>

<basic>open</basic>

</status>

<caps:servcaps>

<caps:audio>true</caps:audio>

<caps:video>false</caps:video>

<caps:duplex><caps:supported><caps:full /></caps:supported>

</caps:duplex>

</caps:servcaps>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-service.ims.icsi.mmtel</op:service-id>

<op:version>1.0</op:version>

<op:description>IPVideoCall</op:description>

</op:service-description>

<contact>sip:+14448880001@test-rcs.com</contact>

</tuple>

<tuple id="FtThumbnail27">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer-thumb</op:service-id>

<op:version>2.0</op:version>

<op:description>FtThumbnail</op:description>

</op:service-description>

<contact>sip:+14448880001@test-rcs.com</contact>

</tuple>

</p:pidf-full>

--9b52c

Content-ID: <sip14448880003@test-rcs.com_1478a>

Content-Transfer-Encoding: binary

Content-Type: application/pidf-diff+xml; charset=utf-8

This SIP message clip highlights the following parameters: Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

<?xml version="1.0" encoding="UTF-8"?>

<p:pidf-full

    xmlns="urn:ietf:params:xml:ns:pidf"

    xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"

    xmlns:op="urn:oma:xml:prs:pidf:oma-pres"

    xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"

    xmlns:cipid="urn:ietf:params:xml:ns:pidf:cipid"

    xmlns:caps="urn:ietf:params:xml:ns:pidf:caps"

    xmlns:p="urn:ietf:params:xml:ns:pidf-diff"

    entity="sip:+14448880003@test-rcs.com" version="1">

<tuple id="SessModeMessa">

<status>

<basic>open</basic>

</status>

<op:service-description><op:service-id>org.openmobilealliance:ChatSession</op:service-id>

<op:version>2.0</op:version>

<op:description>Session Mode Messaging</op:description>

</op:service-description>

<contact>sip:+14448880003@test-rcs.com</contact>

</tuple>

<tuple id="FileTransfer2">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer</op:service-id>

<op:version>1.0</op:version>

<op:description>File Transfer</op:description>

</op:service-description>

<contact>sip:+14448880003@test-rcs.com</contact>

</tuple>

<tuple id="DiscoveryPres">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcse.dp</op:service-id>

<op:version>1.0</op:version>

<op:description>DiscoveryPresence</op:description>

</op:service-description>

<contact>sip:+14448880003@test-rcs.com</contact>

</tuple>

<tuple id="VOLTE27563040">

<status>

<basic>open</basic></status>

<caps:servcaps>

<caps:audio>true</caps:audio>

<caps:video>false</caps:video>

<caps:duplex><caps:supported><caps:full /></caps:supported></caps:duplex>

</caps:servcaps>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-service.ims.icsi.mmtel</op:service-id>

<op:version>1.0</op:version>

<op:description>IPVideoCall</op:description></op:service-description>

<contact>sip:+14448880003@test-rcs.com</contact>

</tuple>

<tuple id="FtThumbnail27">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer-thumb</op:service-id>

<op:version>2.0</op:version>

<op:description>FtThumbnail</op:description>

</op:service-description>

<contact>sip:+14448880003@test-rcs.com</contact>

</tuple>

</p:pidf-full>

--9b52c--

(20) 200 OK

SIP/2.0 200 OK

P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000000

From: <sip:presence@test-rcs.com>;tag=788f02d2d5ad41afaaa3f12a3f9bf2d7

To: <sip:anonymous@anonymous.invalid>;tag=1556288602

Via: SIP/2.0/UDP 192.168.1.2:61368;branch=z9hG4bK0b1a871d628342d5a04588cdaffdce2728;transport=udp,SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bK15a23fab8c644352b7d6347f9d335218

Call-ID: 2779282707@192.168.1.1

CSeq: 1 NOTIFY

Contact: <sip:1234567890@192.168.1.1:6000>;+sip.instance="<urn:gsma:imei:35375607-416186-0>"

Content-Length: 0

This SIP message clip highlights the following parameters: Via, Contact, CSeq, Call-ID, P-Access-Network-Info, From, To, Content-Length. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(21) SUBSCRIBE sip:+14448880000@test-rcs.com  

SUBSCRIBE sip:+14448880000@test-rcs.com SIP/2.0

Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK

P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000000

User-Agent: T-Mobile VoLTE-RCS-ePDG-IR94 SEC/OKC 5.1.1

This SIP message clip highlights the following parameters: P-Access-Network-Info, Allow, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept-Encoding: gzip

Expires: 0

This SIP message clip highlights the following parameters: Expires. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Event: presence

Accept-Contact: *;+g.oma.sip-im;explicit;require

This SIP message clip highlights the following parameters: Accept-Contact. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept: application/pidf+xml,multipart/related,application/rlmi+xml

P-Preferred-Identity: <sip:1234567890@test-rcs.com>

Contact: <sip:1234567890@192.168.1.1:6000>;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session,urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.filetransfer,urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";+g.3gpp.smsip;video;+sip.instance="<urn:gsma:imei:35375607-416186-0>"

Require: sec-agree

Proxy-Require: sec-agree

Route: <sip:192.168.1.2:61368;lr>

From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=1792640574

To: <sip:+14448880000@test-rcs.com>

Call-ID: 3186314823@192.168.1.1

CSeq: 1 SUBSCRIBE

Max-Forwards: 70

This SIP message clip highlights the following parameters: Route, Contact, CSeq, Call-ID, From, To, Max-Forwards, Require, Proxy-Require. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Security-Verify: ipsec-3gpp;q=0.1;alg=hmac-md5-96;ealg=null;prot=esp;mod=trans;spi-c=610868849;spi-s=647531074;port-c=61367;port-s=61368

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK3302267001smg;transport=TCP;rport

Content-Length: 0

This SIP message clip highlights the following parameters: Via, Content-Length. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(22) 200 OK

SIP/2.0 200 OK

Max-Forwards: 70

Via: SIP/2.0/TCP 192.168.1.1:6000;branch=z9hG4bK3302267001smg;transport=TCP;rport=5414

From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=1792640574

To: <sip:+14448880000@test-rcs.com>;tag=52a562868b6c4a71bb329cc67ac6081f

Call-ID: 3186314823@192.168.1.1

CSeq: 1 SUBSCRIBE

Expires: 0

Contact: <sip:192.168.1.2:6061;transport=tcp>

This SIP message clip highlights the following parameters: Via, Contact, Expires, CSeq, Call-ID, From, To, Max-Forwards. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Accept-Encoding: gzip

Record-Route: <sip:192.168.1.2:61368;lr>

User-Agent: Test-Rcs/fb0aa0d PresenceService_VNID[1]

Content-Length: 0

This SIP message clip highlights the following parameters: Content-Length, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

(23) NOTIFY sip:1234567890@192.168.1.1:6000

NOTIFY sip:1234567890@192.168.1.1:6000 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.2:61368;branch=z9hG4bK0b1a871d628342d5a04588cdaffdce272a;transport=udp

Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bK2bc68059e1824e5b82653eb790951fdf

Max-Forwards: 69

From: sip:presence@test-rcs.com;tag=52a562868b6c4a71bb329cc67ac6081f

To: sip:anonymous@anonymous.invalid;tag=1792640574

This SIP message clip highlights the following parameters: Via, From, To, Max-Forwards. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Event: presence

Contact: sip:presence@test-rcs.com:6061

Content-Type: application/pidf+xml

This SIP message clip highlights the following parameters: Contact, Content-Type. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Subscription-State: terminated;reason=timeout

Accept-Encoding: gzip

Content-Encoding: gzip

Content-Length: 539

CSeq: 1 NOTIFY

Call-ID: 3186314823@192.168.1.1

User-Agent: Test-Rcs/fb0aa0d PresenceService_VNID[1]

This SIP message clip highlights the following parameters: CSeq, Call-ID, Content-Length, User-Agent. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.

Record-Route: <sip:192.168.1.2:61368;lr>

<?xml version="1.0" encoding="UTF-8"?>

<presence

    xmlns="urn:ietf:params:xml:ns:pidf"

    xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"

    xmlns:op="urn:oma:xml:prs:pidf:oma-pres"

    xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"

    xmlns:cipid="urn:ietf:params:xml:ns:pidf:cipid"

    xmlns:caps="urn:ietf:params:xml:ns:pidf:caps"

    entity="sip:+14448880000@test-rcs.com">

<tuple id="SessModeMessa">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:ChatSession</op:service-id>

<op:version>2.0</op:version>

<op:description>Session Mode Messaging</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

<tuple id="FileTransfer2">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer</op:service-id>

<op:version>1.0</op:version>

<op:description>File Transfer</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

<tuple id="DiscoveryPres">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcse.dp</op:service-id>

<op:version>1.0</op:version>

<op:description>DiscoveryPresence</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

<tuple id="VOLTE27563040">

<status>

<basic>open</basic>

</status>

<caps:servcaps>

<caps:audio>true</caps:audio>

<caps:video>false</caps:video>

<caps:duplex><caps:supported><caps:full /></caps:supported></caps:duplex>

</caps:servcaps>

<op:service-description>

<op:service-id>org.3gpp.urn:urn-7:3gpp-service.ims.icsi.mmtel</op:service-id>

<op:version>1.0</op:version>

<op:description>IPVideoCall</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

<tuple id="FtThumbnail27">

<status>

<basic>open</basic>

</status>

<op:service-description>

<op:service-id>org.openmobilealliance:File-Transfer-thumb</op:service-id>

<op:version>2.0</op:version>

<op:description>FtThumbnail</op:description>

</op:service-description>

<contact>sip:+14448880000@test-rcs.com</contact>

</tuple>

</presence>

(24) 200 OK

SIP/2.0 200 OK

P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000000

From: <sip:presence@test-rcs.com>;tag=52a562868b6c4a71bb329cc67ac6081f

To: <sip:anonymous@anonymous.invalid>;tag=1792640574

Via: SIP/2.0/UDP 192.168.1.2:61368;branch=z9hG4bK0b1a871d628342d5a04588cdaffdce272a;transport=udp,SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bK2bc68059e1824e5b82653eb790951fdf

Call-ID: 3186314823@192.168.1.1

CSeq: 1 NOTIFY

Contact: <sip:1234567890@192.168.1.1:6000>;+sip.instance="<urn:gsma:imei:35375607-416186-0>"

Content-Length: 0

This SIP message clip highlights the following parameters: Via, Contact, CSeq, Call-ID, P-Access-Network-Info, From, To, Content-Length. Use these fields to correlate routing, dialog identity, transaction sequencing, registration/session state, security context, and media negotiation for this part of the procedure.