IMS/SIP Quick Reference                                                Home : www.sharetechnote.com

 

 

 

SIP Method : NOTIFY

 

(Refer to 7.1.2. NOTIFY of RFC 3265 for the details)

 

< Example 1 >

 

[ Line 1  ] NOTIFY sip:+11234567890@ims.sharetechnote.com SIP/2.0

[ Line 2  ] Via: SIP/2.0/UDP 192.168.1.2:5060;branch=z9hG4bK-fa1fec3c8c092d3c03c8555617fa1730;transport=UDP

[ Line 3  ] Call-ID: 2489100824@192.168.1.15

[ Line 4  ] From: <sip:+11234567890@ims.sharetechnote.com>;tag=987654321

[ Line 5  ] To: <sip:+11234567890@ims.sharetechnote.com>;tag=3855569531

[ Line 6  ] Subscription-State: active;expires=3600

[ Line 7  ] Event: reg

[ Line 8  ] CSeq: 1 NOTIFY

[ Line 9  ] Contact: <sip:192.168.1.2:5060>

[ Line 10 ] Max-Forwards: 70

[ Line 11 ] Content-Type: application/reginfo+xml

[ Line 12 ] Content-Length: 336

[ Line 13 ]

<reginfo xmlns="urn:ietf:params:xml:ns:reginfo" version="0" state="full">

<registration aor="sip:+11234567890@ims.sharetechnote.com" id="12345" state="active">

<contact id="100" state="active" event="registered" expires="3600">

<uri>sip:+11234567890@192.168.1.15:5060</uri>

</contact>

</registration>

</reginfo>

 

 

< Example 2 >

 

[ Line 1  ] NOTIFY sip:192.168.1.1:5060;transport=udp SIP/2.0

[ Line 2  ] Via: SIP/2.0/UDP 192.168.1.2:51417;branch=z9hG4bKb7a8715cd9d04e019149483fac110bee93;

               rport;transport=udp

[ Line 3  ] Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bK299ad82d0390455982d5f305d9d68a43;rport=49793

[ Line 4  ] Max-Forwards: 69

[ Line 5  ] From: <sip:presence@anritsu-rcs.com>;tag=9ab957cb0149442b9e4a6d99d93f3d21

[ Line 6  ] To: <sip:+339012341234@anritsu-rcs.com>;tag=8Ih0yaUGAA

[ Line 7  ] Event: presence

[ Line 8  ] Contact: <sip:presence@anritsu-rcs.com>

[ Line 9  ] Content-Type: application/pidf+xml

[ Line 10] Subscription-State: active

[ Line 11] Content-Length: 0

[ Line 12] CSeq: 1 NOTIFY

[ Line 13] Call-ID: 8Ih0yaUFAA@192.168.1.1

[ Line 14] Record-Route: <sip:192.168.1.2;lr>

 

 

< Example 3 >

 

[ Line 1  ] NOTIFY sip:192.168.1.1:5060;transport=udp SIP/2.0

[ Line 2  ] Via: SIP/2.0/UDP 192.168.1.2:51418;branch=z9hG4bKb7a8715cd9d04e019149483fac110bee95;

               rport;transport=udp

[ Line 3  ] Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bKdacba03107bf4493a4c2823e59ed1195;rport=49804

[ Line 4  ] Max-Forwards: 69

[ Line 5  ] From: <sip:presence@anritsu-rcs.com>;tag=0cfe3495adda4142b88a2f341e9cb8d8

[ Line 6  ] To: <sip:+339012341234@anritsu-rcs.com>;tag=M6g0yaUEAA

[ Line 7  ] Event: presence.winfo

[ Line 8  ] Contact: <sip:presence@anritsu-rcs.com>

[ Line 9  ] Content-Type: application/watcherinfo+xml

[ Line 10] Subscription-State: active

[ Line 11] Content-Length: 368

[ Line 12] CSeq: 2 NOTIFY

[ Line 13] Call-ID: M6g0yaUDAA@192.168.1.1

[ Line 14] Record-Route: <sip:192.168.1.2;lr>

 

[ Line 15] <?xml version="1.0" encoding="utf-8"?>

[ Line 16] <watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="1" state="full">

[ Line 17]   <watcher-list resource="sip:+339012341234@anritsu-rcs.com" package="presence">

[ Line 18]     <watcher status="pending" id="5c7c3f58" display-name="RCS-VUA" event="subscribe">

                       sip:+330123456789@anritsu-rcs.com

                   </watcher>

[ Line 19]   </watcher-list>

[ Line 20] </watcherinfo>

 

 

< Example 4 >

 

[ Line 1  ] NOTIFY sip:192.168.1.1:5060;transport=udp SIP/2.0

[ Line 2  ] Via: SIP/2.0/UDP 192.168.1.2:51419;branch=z9hG4bKb7a8715cd9d04e019149483fac110bee96;

               rport;transport=udp

[ Line 3  ] Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bKf7b78f04185f427fb6f0bcfcace167de;rport=49810

[ Line 4  ] Max-Forwards: 69

[ Line 5  ] From: <sip:presence@anritsu-rcs.com>;tag=0cfe3495adda4142b88a2f341e9cb8d8

[ Line 6  ] To: <sip:+339012341234@anritsu-rcs.com>;tag=M6g0yaUEAA

[ Line 7  ] Event: presence.winfo

[ Line 8  ] Contact: <sip:presence@anritsu-rcs.com>

[ Line 9  ] Content-Type: application/watcherinfo+xml

[ Line 10] Subscription-State: active

[ Line 11] Content-Length: 496

[ Line 12] CSeq: 3 NOTIFY

[ Line 13] Call-ID: M6g0yaUDAA@192.168.1.1

[ Line 14] Record-Route: <sip:192.168.1.2;lr>

 

[ Line 15] <?xml version="1.0" encoding="utf-8"?>

[ Line 16] <watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="4" state="full">

[ Line 17]   <watcher-list resource="sip:+339012341234@anritsu-rcs.com" package="presence">

[ Line 18]     <watcher status="active" id="5c7c3f58" display-name="RCS-VUA" event="approved">

                         sip:+330123456789@anritsu-rcs.com

                  </watcher>

[ Line 19]     <watcher status="active" id="9a20aee7" display-name="test user" event="approved">

                         sip:+339012341234@anritsu-rcs.com

                  </watcher>

[ Line 20]   </watcher-list>

[ Line 21] </watcherinfo>