CHAPTER16 Services
Mediant 1000 Gateway & E-SBC | User's Manual
The device notifies the Skype for Business Server of a user's presence status, by using SIP
PUBLISH messages. The message transactions between the device and Skype for Business
Server is as follows:
1. The device routes a call between two Skype for Business users and when connected, sends a
PUBLISH message with the Event header set to "presence", Expires header set to "600",
Content-Type header set to "application/pidf+xml", and where the XML body's "activity" is set
to "on-the-phone", as shown in the following example for user John Doe:
PUBLISH sip:john.doe@sfb.example SIP/2.0
From: <sip:john.doe@sfb.example>;tag=1c537837102
To: <sip:john.doe@sfb.example>
CSeq: 1 PUBLISH
Event: presence
Expires: 600
Content-Type: application/pidf+xml
Content-Length: 489
<?xml version="1.0" encoding="utf-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:ep="urn:ietf:params:xml:ns:pidf:status:rpid-status"
xmlns:et="urn:ietf:params:xml:ns:pidf:rpid-tuple"
xmlns:ci="urn:ietf:params:xml:ns:pidf:cipid"
entity="sip:john.doe@sfb.example">
<tuple id="0">
<status>
<basic>open</basic>
<ep:activities>
<ep:activity>on-the-phone</ep:activity>
</ep:activities>
</status>
</tuple>
<ci:display-name>John Doe</ci:display-name>
</presence>
2. The Skype for Business Server responds to the device with a SIP 200 OK. The message is
sent with a SIP-ETag header which identifies the entity (and Expires header set to 600
seconds), as shown in the following example:
SIP/2.0 200 OK
From: "John Doe"<sip:john.doe@sfb.example>;tag=1c537837102
To: <sip:john.doe@sfb.example>;tag=0E4324A4B27040E4A167108D4FAD27E3
Call-ID: 1284896643279201635736@10.33.221.57
CSeq: 1 PUBLISH
Via: SIP/2.0/TLS 10.33.221.57:5061;alias;…received=10.33.221.57;ms-received
port=48093;ms-received-cid=4900
SIP-ETag: 2545777538-1-1
Expires: 600
Content-Length: 0
3. If the call lasts longer than 600 seconds, the device sends another PUBLISH message with
the same SIP-ETag value and with an Expires header value of 600 seconds. The Skype for
Business Server responds with another 200 OK, but with a new SIP-ETag value (and Expires
header set to 600 seconds). This scenario occurs for each 600-second call interval.
- 293 -