PresenceSignaling-Eamples

Version 4 (Adrian Georgescu, 03/15/2013 09:03 am)

1 1 Adrian Georgescu
h1. Presence Examples
2 1 Adrian Georgescu
3 1 Adrian Georgescu
h2. Publish
4 1 Adrian Georgescu
5 4 Adrian Georgescu
<pre>
6 4 Adrian Georgescu
SENDING: Packet 186, +0:01:10.474127
7 4 Adrian Georgescu
2013-03-15 09:02:53.724938: 192.168.1.57:54883 -(SIP over tls)-> 81.23.228.129:5061
8 4 Adrian Georgescu
PUBLISH sip:ag@ag-projects.com SIP/2.0
9 4 Adrian Georgescu
Via: SIP/2.0/tls 192.168.1.57:54883;rport;branch=z9hG4bKPj8YsF3qQD1aQ6c3KigPkl0Ief1n8zET8U
10 4 Adrian Georgescu
Max-Forwards: 70
11 4 Adrian Georgescu
From: "Adrian Georgescu" <sip:ag@ag-projects.com>;tag=Mmfd0D926ugRI7VyNtzKyym6Fdh1UEs1
12 4 Adrian Georgescu
To: "Adrian Georgescu" <sip:ag@ag-projects.com>
13 4 Adrian Georgescu
Call-ID: Wa.Ss1lgq43vZxvWXhXTHCJhw9xE2D.C
14 4 Adrian Georgescu
CSeq: 2 PUBLISH
15 4 Adrian Georgescu
Event: presence
16 4 Adrian Georgescu
Expires: 600
17 4 Adrian Georgescu
SIP-If-Match: a.1363079571.14385.3526.6
18 4 Adrian Georgescu
User-Agent: Blink Pro 2.1.0 (MacOSX)
19 4 Adrian Georgescu
Content-Type: application/pidf+xml
20 4 Adrian Georgescu
Content-Length:  2110
21 4 Adrian Georgescu
22 4 Adrian Georgescu
<?xml version='1.0' encoding='UTF-8'?>
23 4 Adrian Georgescu
....
24 4 Adrian Georgescu
25 4 Adrian Georgescu
26 4 Adrian Georgescu
RECEIVED: Packet 187, +0:01:10.507265
27 4 Adrian Georgescu
2013-03-15 09:02:53.758076: 85.17.186.7:5061 -(SIP over tls)-> 192.168.1.57:54850
28 4 Adrian Georgescu
SIP/2.0 200 OK
29 4 Adrian Georgescu
Via: SIP/2.0/tls 192.168.1.57:54850;received=82.161.39.123;rport=54850;branch=z9hG4bKPj-RDj4QuPAx4.wTMJzM5LWF47.r0CgMY3
30 4 Adrian Georgescu
From: "Adrian Georgescu" <sip:ag@sip2sip.info>;tag=89-faQ1A3yWpVYidsVQzHGHchFuMbk4N
31 4 Adrian Georgescu
To: "Adrian Georgescu" <sip:ag@sip2sip.info>;tag=104fb72fe3a4f8dc6b8eaad6b52e574f-1ebe
32 4 Adrian Georgescu
Call-ID: EqIw1T5simz9CULYnZN2NpURqp3jMWSs
33 4 Adrian Georgescu
CSeq: 2 PUBLISH
34 4 Adrian Georgescu
Expires: 300
35 4 Adrian Georgescu
SIP-ETag: a.1363079512.19015.24376.7
36 4 Adrian Georgescu
Server: SIP Thor on OpenSIPS XS 1.9.0
37 4 Adrian Georgescu
Content-Length: 0
38 4 Adrian Georgescu
</pre>
39 4 Adrian Georgescu
40 4 Adrian Georgescu
41 1 Adrian Georgescu
h2. Subscribe
42 1 Adrian Georgescu
43 2 Adrian Georgescu
<pre>
44 2 Adrian Georgescu
SENDING: Packet 10348, +13:04:47.968704
45 2 Adrian Georgescu
2013-03-15 08:43:21.066174: 192.168.1.57:54336 -(SIP over tls)-> 85.17.186.7:5061
46 2 Adrian Georgescu
SUBSCRIBE sip:ag+presence@sip2sip.info SIP/2.0
47 2 Adrian Georgescu
Via: SIP/2.0/tls 192.168.1.57:54336;rport;branch=z9hG4bKPjxzWxyHoyQE1B14kzh2e5HzQ1fe9YCxAS
48 2 Adrian Georgescu
Max-Forwards: 70
49 2 Adrian Georgescu
From: "Adrian Georgescu" <sip:ag@sip2sip.info>;tag=Nk9vYs7jSrxoFxJlHhpGqp5ratba8.fZ
50 2 Adrian Georgescu
To: <sip:ag+presence@sip2sip.info>
51 2 Adrian Georgescu
Contact: <sip:18692507@192.168.1.57:62448;transport=tls>
52 2 Adrian Georgescu
Call-ID: LxLofW8im8tXeSeqtFD9eLx.Qww7dgZv
53 2 Adrian Georgescu
CSeq: 4102 SUBSCRIBE
54 2 Adrian Georgescu
Event: presence
55 2 Adrian Georgescu
Expires: 300
56 2 Adrian Georgescu
Accept: multipart/related, application/rlmi+xml, application/pidf+xml
57 2 Adrian Georgescu
Allow-Events: conference, message-summary, dialog, presence, presence.winfo, xcap-diff, dialog.winfo, refer
58 2 Adrian Georgescu
Supported: eventlist
59 2 Adrian Georgescu
User-Agent: Blink Pro 2.1.0 (MacOSX)
60 2 Adrian Georgescu
Proxy-Authorization: Digest username="ag", realm="sip2sip.info", nonce="5142d136c3cd3c566c348c811f3e61d73901e538", uri="sip:ag+presence@sip2sip.info", response="141b2c3c3b0d5a06bc0276a60f350f85"
61 2 Adrian Georgescu
Content-Length:  0
62 2 Adrian Georgescu
63 2 Adrian Georgescu
RECEIVED: Packet 10349, +13:04:47.972002
64 2 Adrian Georgescu
2013-03-15 08:43:21.069472: 85.17.186.7:5061 -(SIP over tls)-> 192.168.1.57:54336
65 2 Adrian Georgescu
SIP/2.0 200 OK
66 2 Adrian Georgescu
Record-Route: <sip:85.17.186.7;transport=tcp;r2=on;lr;ftag=sQgfZ4lW3hmwYxKzERR3aGzVsiz8gP9S>
67 2 Adrian Georgescu
Record-Route: <sip:85.17.186.7:5061;transport=tls;r2=on;lr;ftag=sQgfZ4lW3hmwYxKzERR3aGzVsiz8gP9S>
68 2 Adrian Georgescu
Via: SIP/2.0/tls 192.168.1.57:54336;received=82.161.39.123;rport=54336;branch=z9hG4bKPjONne8WosnfVUF.pr4FIZILX9BlPbwzjz
69 2 Adrian Georgescu
From: "Adrian Georgescu" <sip:ag@sip2sip.info>;tag=sQgfZ4lW3hmwYxKzERR3aGzVsiz8gP9S
70 2 Adrian Georgescu
To: <sip:ag@sip2sip.info>;tag=104fb72fe3a4f8dc6b8eaad6b52e574f-3e38
71 2 Adrian Georgescu
Call-ID: jBS0ToEV8.ieDf8yBhQ-rIaQ7kc9ITA3
72 2 Adrian Georgescu
CSeq: 10974 SUBSCRIBE
73 2 Adrian Georgescu
Expires: 300
74 2 Adrian Georgescu
Contact: <sip:presence@81.23.228.129;transport=tcp>
75 2 Adrian Georgescu
Server: SIP Thor on OpenSIPS XS 1.9.0
76 2 Adrian Georgescu
Content-Length: 0
77 2 Adrian Georgescu
</pre>
78 2 Adrian Georgescu
79 1 Adrian Georgescu
h2. Notify
80 3 Adrian Georgescu
81 3 Adrian Georgescu
<pre>
82 3 Adrian Georgescu
RECEIVED: Packet 10355, +13:04:48.004262
83 3 Adrian Georgescu
2013-03-15 08:43:21.101732: 85.17.186.7:5061 -(SIP over tls)-> 192.168.1.57:54336
84 3 Adrian Georgescu
NOTIFY sip:18692507@82.161.39.123:54336;transport=tls SIP/2.0
85 3 Adrian Georgescu
Record-Route: <sip:85.17.186.7:5061;transport=tls;r2=on;lr;ftag=104fb72fe3a4f8dc6b8eaad6b52e574f-9b73>
86 3 Adrian Georgescu
Record-Route: <sip:85.17.186.7;transport=tcp;r2=on;lr;ftag=104fb72fe3a4f8dc6b8eaad6b52e574f-9b73>
87 3 Adrian Georgescu
Via: SIP/2.0/TLS 85.17.186.7:5061;branch=z9hG4bK39f1.17cb9ca3.0;i=dfb06
88 3 Adrian Georgescu
Via: SIP/2.0/TCP 81.23.228.129:5060;rport=33450;received=81.23.228.129;branch=z9hG4bK39f1.ff127ab1.0
89 3 Adrian Georgescu
To: <sip:ag@sip2sip.info>;tag=Nk9vYs7jSrxoFxJlHhpGqp5ratba8.fZ
90 3 Adrian Georgescu
From: <sip:ag+presence@sip2sip.info>;tag=104fb72fe3a4f8dc6b8eaad6b52e574f-9b73
91 3 Adrian Georgescu
CSeq: 1 NOTIFY
92 3 Adrian Georgescu
Call-ID: LxLofW8im8tXeSeqtFD9eLx.Qww7dgZv
93 3 Adrian Georgescu
Max-Forwards: 69
94 3 Adrian Georgescu
Content-Length: 2737
95 3 Adrian Georgescu
User-Agent: SIP Thor on OpenSIPS XS 1.9.0
96 3 Adrian Georgescu
Event: presence
97 3 Adrian Georgescu
Contact: <sip:rls@81.23.228.129:33450;transport=tcp>
98 3 Adrian Georgescu
Subscription-State: active;expires=300
99 3 Adrian Georgescu
Require: eventlist
100 3 Adrian Georgescu
Content-Type: multipart/related;type="application/rlmi+xml";start="<1363333400.sip:ag+presence@sip2sip.info.41798616>";boundary="De4MDAaTbj3SuLeANRB15T2r"
101 3 Adrian Georgescu
102 3 Adrian Georgescu
--De4MDAaTbj3SuLeANRB15T2r
103 3 Adrian Georgescu
Content-Transfer-Encoding: binary
104 3 Adrian Georgescu
Content-ID: <1363333400.sip:ag+presence@sip2sip.info.41798616>
105 3 Adrian Georgescu
Content-Type: application/rlmi+xml;charset="UTF-8"
106 3 Adrian Georgescu
107 3 Adrian Georgescu
<?xml version="1.0"?>
108 3 Adrian Georgescu
<list uri="sip:ag+presence
109 3 Adrian Georgescu
...
110 3 Adrian Georgescu
</pre>