Pre-setup
1) make sure Ericsson SDS has been properly installed (SDS 4.2 in this case). Refer to another earlier note/blog for this.
2) Verify the provisioning/user setting. The default data should be ok....however, you data may be changed if you have some earlier version of SDS installed. So double confirm them again
- Go to menu->windows->preference / Ericsson SDS /Server /CSCF, make sure "ericsson.com" is the domain name. Otherwise, click "Restore Defaults". If you make any change, you need to restart CSCF
- Check IMS Core provisioning . Go to menu-> SDS -> server -> provisioning
Under DNS, you should have 3 default URI: sip:pgm.ericsson.com; sip:poc.ericsson.com; sip:imsm.ericsson.com and there DNS record (see the picture)
- make sure "alice@ericsson.com" "bob@ericsson.com" are there in the HSS -> User Profile
and the users' Service Profile = "profiel" (default)
start/stop server
Start the Sailfin server, DNS server and CSCF. Refer to the earlier note/blog for this. Presence Server is automatically started after you start the sailfin.
same idea for stop.
Demonstrate Presence Server is working properly
Use "SDS -> Test tools -> start test agent" for this testing. You need to start two of them, one for "alice" and one for "bob".
The use case will be the following:
step 1: Alice registers itself
- use the default message generated by the tool. Make sure: method = "Register". URI="sip:ericsson.com"; To Name "Alice", To URI: "sip:alice@ericsson.com", From Name "Alice" From URI": sip:alice@ericsson.com
Headers
user-agent = SDS test-Agent
"Message created"
REGISTER sip:ericsson.com SIP/2.0
Max-Forwards: 70
CSeq: 1 REGISTER
Content-Length: 0
Contact:
User-Agent: SDS Test-Agent
From: "Alice";tag=1558
To: "Alice"
Call-ID: [!!!generated by the tool !!!]
Via: SIP/2.0/UDP 138.85.197.100:6060;branch=z9hG4bKc085250bd23e233208b3fd568ce54b18
step 2: Bob registers itself
same as step 1, except for the user name
REGISTER sip:ericsson.com SIP/2.0
Max-Forwards: 70
CSeq: 1 REGISTER
Content-Length: 0
Contact:
User-Agent: SDS Test-Agent
From: "Bob" ;tag=7751
To: "Bob"
Call-ID: [!!!generated by the tool !!!]
Via: SIP/2.0/UDP 138.85.197.100:6061;branch=z9hG4bKa35ec1b761b9963ec8991d81e8e64dd4
Step 3: Alice subscribe to Bob's presence status
On "Alice" test agent
pick Method="subscribe". And do the following twist to the default values:
URI: "sip:bob@ericsson.com"
To Name "Bob"
To URI "sip:bob@ericsson.com"
From Name "Alice"
From URI "sip:alice@ericsson.com"
Add "Event" header. value="presence"
Example Message will be:
SUBSCRIBE sip:bob@ericsson.com SIP/2.0
Max-Forwards: 70
Event: presence
CSeq: 1 SUBSCRIBE
Content-Length: 0
Contact:
User-Agent: SDS Test-Agent
From: "Alice";tag=7739
To: "Bob"
Route: ,
Call-ID: [!!!generated by the test client!!!!]
Via: SIP/2.0/UDP 138.85.250.52:6060;branch=z9hG4bK72641769945c0c12c064e43aca221d4c
After "send message", the "200 OK" button on the right side will be available. Click it quickly, otherwise, the "subscribe" request may timeout.
step 4: Bob publishes it's presence status
On "Bob" test agent. Create a "PUBLISH" message.
URI: sip:ericsson.com
TO Name: Bob
To URI: sip:bob@ericsson.com
From Name: Bob
From URI: sip:bob@ericsson.com
Add "event" header, value="presence"
Message Content = "Home" // or "office, I'm available..."
Example message will be:
PUBLISH sip:ericsson.com SIP/2.0
Max-Forwards: 70
Event: presence
CSeq: 1 PUBLISH
Content-Length: 4
Contact:
User-Agent: SDS Test-Agent
Route: ,
From: "Bob";tag=544
To: "Bob"
Call-ID: [!!!generated by the test client!!!!]
Content-Type: text/plain
Via: SIP/2.0/UDP 138.85.250.52:6061;branch=z9hG4bK7c3cefb34cb5220df70bac24778f1f4f
home
step 5: Alice gets notified about Bob's presence status change
Now, on "Alice" test agent, it will receive the notification. Click "200 OK" to accept it.
Attached pictures:
Screenshots
default HSS-User profile
default DNS setting