4.11 MSRTC SUBSCRIBE
A federated user, alice@fabrikam.com, subscribes to the presence of bob@contoso.com, as follows:
SUBSCRIBE sip:bob@contoso.com SIP/2.0 Via: SIP/2.0/TLS 10.46.164.196:1620 Max-Forwards: 70 From: "Alice" <sip:alice@fabrikam.com>;tag=38209ebf3e;epid=d6277c8671 To: <sip:bob@contoso.com> Call-ID: 23ffb7f278764277871ff5b4ba90ae11 CSeq: 1 SUBSCRIBE Contact: <sip:alice@fabrikam.com:1620;maddr=10.46.164.196;transport=tls>;proxy=replace User-Agent: LCC/1.3 Event: presence Accept: application/xpidf+xml, text/xml+msrtc.pidf, application/pidf+xml Supported: ms-benotify Proxy-Require: ms-benotify Supported: ms-piggyback-first-notify Proxy-Authorization: ... Content-Length: 0
The server sends a presence document in a 200 OK response, as follows:
SIP/2.0 200 OK Authentication-Info: ... ms-edge-proxy-message-trust: ms-source-type=AutoFederation;ms-ep-fqdn=lcsproxy-internal.fabrikam.com;ms-source-verified-user=verified;ms-source-network=federation Contact: <sip:ocsserver.contoso.com:5061;transport=tls> Content-Length: … From: "Alice" <sip:alice@fabrikam.com>;tag=38209ebf3e;epid=d6277c8671 To: <sip:bob@contoso.com>;tag=B8FCF750 Call-ID: 23ffb7f278764277871ff5b4ba90ae11 CSeq: 1 SUBSCRIBE Via: SIP/2.0/TLS 10.46.164.196:1620;ms-received-port=1620;ms-received-cid=1dcee00 Record-Route: … Expires: 29087 Content-Type: text/xml+msrtc.pidf Event: presence subscription-state: active;expires=29087 ms-piggyback-cseq: 1 Supported: ms-piggyback-first-notify Record-Route: <sip:sipfed.contoso.com:5061;transport=tls;lr;ms-key-info=jACAAPo9w-9gLtcJgl_IAQECAAADZgAAAKQAAAnTaukuFFMFe_Sxt9an2NqgIu2oegkAvaJbqlQeT1caGA42DMKNbTe7VTqOXAIodkufX0rROiiPCuu5KfsMgjduDjdVTqO-gB_0RrVrnz0KlCg_c2iFYhp82puKA7aiQG32qXWbL6DRGe-05AY4672ZKfftcjOvngToyO4VY3NClKyUGN0DKQZ89Ac0ime6wNSgJuZloJzYxdJ-2hOddU_-nS3xW_1xbpz2XC1jcAlJTzNml8HWp6zi9KOOoi18TwBGADRMLXrMnUFCaQnCbVf49fzNTKoM5rCihcshCk1GYVH3ClRbzjwgmx3lLv6HrQ5mrBm5mqwM2tV1a9ednogA;ms-route-sig=bkBvoYzffbAVQtNIHC7e_q2qt_z4hWPI3VZvzOVwAA> Record-Route: <sip:lcsproxy-internal.fabrikam.com:5061;transport=tls;lr> Record-Route: <sip:NALCSDIRECT01.na.fabrikam.com:5061;transport=tls;lr> Record-Route: <sip:nalcspool.na.fabrikam.com:5061;transport=tls;ms-fe=NALCSFE02.na.fabrikam.com;lr;ms-route-sig=cadNbjDLZFNRAuNoAxZtyRASyXIfE-> <presentity uri="bob@contoso.com" xmlns= "http://schemas.microsoft.com/2002/09/sip/presence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <availability aggregate="300" /> <activity aggregate="400" /> <displayName displayName="Bob" /> <email email="bob@contoso.com" /> <phoneNumber number="+1 (123) 4567890 X67890" /> <aggregate> <states> <state avail="3500" xsi:type="userState">online</state> </states> </aggregate> </presentity>
The server sends a NOTIFY request when the presence of bob@contoso.com changes, as shown in the following example:
NOTIFY sip:10.46.164.196:1620;transport=tls;ms-received-cid=1DCEE00 SIP/2.0 Authentication-Info: … Via: SIP/2.0/TLS 172.30.36.108:5061;branch=z9hG4bK622E3399.79971B7B;branched=FALSE;ms-internal-info="aan8w2KNqmlXBytq9eqdN9b-TX7pkA" Max-Forwards: 64 Via: … To: <sip:alice@fabrikam.com>;tag=38209ebf3e;epid=d6277c8671 Content-Length: … From: <sip:bob@contoso.com>;tag=B8FCF750 Call-ID: 23ffb7f278764277871ff5b4ba90ae11 CSeq: 2 NOTIFY Content-Type: text/xml+msrtc.pidf Event: presence subscription-state: active;expires=27503 <presentity uri="bob@contoso.com" xmlns="http://schemas.microsoft.com/2002/09/sip/presence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <availability aggregate="300" /> <activity aggregate="600" /> <displayName displayName="Bob" /> <email email="bob@contoso.com" /> <phoneNumber number="+1 (123) 4567890 X67890" /> <aggregate> <states> <state avail="6500" xsi:type="userState">busy</state> </states> </aggregate> </presentity>
The SIP protocol client sends a 200 OK response for the NOTIFY request, as follows:
SIP/2.0 200 OK Via: … From: <sip:bob@contoso.com>;tag=B8FCF750 To: "Alice" <sip:alice@fabrikam.com>;tag=38209ebf3e;epid=d6277c8671 Call-ID: 23ffb7f278764277871ff5b4ba90ae11 CSeq: 2 NOTIFY User-Agent: LCC/1.3 Proxy-Authorization: ... Content-Length: 0