在IMS/SIP系統(tǒng)中其支持“地址簿更新”(Addressbook Update),其終端(UA)是通過“NOTIFY”消息發(fā)送給對方;
1.地址簿更新信令流程
Step | Direction | Protocol | Message | Comments |
(1) | UA1 <-- Proxy/UA2 | SIP | NOTIFY | Send Addressbook update to a UE(330123456789) |
(2) | UA1 --> Proxy/UA2 | SIP | 200 OK |
|
(3) | UA1 --> Proxy/UA2 | HTTP | PUT/XML |
|
(4) | UA1 <-- Proxy/UA2 | HTTP | 201 Created |
|
(5) | UA1 <-- Proxy/UA2 | SIP | NOTIFY |
|
(6) | UA1 --> Proxy/UA2 | SIP | 200 OK |
|
2.地址簿更新消息內(nèi)容
2.1 NOTIFY
NOTIFY sip:192.168.1.1:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:51418;branch=z9hG4bKb7a8715cd9d04e019149483fac110bee95;rport;transport=udp
Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bKdacba03107bf4493a4c2823e59ed1195;rport=49804
Max-Forwards: 69
From: <sip:presence@test-rcs.com>;tag=0cfe3495adda4142b88a2f341e9cb8d8
To: <sip:+[email]339012341234@test-rcs.com[/email]>;tag=M6g0yaUEAA
Event: presence.winfo
Contact: <sip:presence@test-rcs.com>
Content-Type: application/watcherinfo+xml
Subscription-State: active
Content-Length: 368
CSeq: 2 NOTIFY
Call-ID: [email]M6g0yaUDAA@192.168.1.1[/email]
Record-Route: <sip:192.168.1.2;lr>
<?xml version="1.0" encoding="utf-8"?>
<watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="1" state="full">
<watcher-list resource="sip:+[email]339012341234@test-rcs.com[/email]" package="presence">
<watcher status="pending" id="5c7c3f58" display-name="RCS-VUA" event="subscribe">
sip:+[email]330123456789@test-rcs.com[/email]
</watcher>
</watcher-list>
</watcherinfo>
2.2 200 OK
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.2:51418;branch=z9hG4bKb7a8715cd9d04e019149483fac110bee95;
rport=51418;transport=udp;
received=192.168.1.2,SIP/2.0/TCP 192.168.1.2:6061;
branch=z9hG4bKdacba03107bf4493a4c2823e59ed1195;rport=49804
From: <sip:presence@test-rcs.com>;tag=0cfe3495adda4142b88a2f341e9cb8d8
To: <sip:+[email]339012341234@test-rcs.com[/email]>;tag=M6g0yaUEAA
CSeq: 2 NOTIFY
Call-ID: [email]M6g0yaUDAA@192.168.1.1[/email]
Content-Length: 0
2.3 HTTP PUT/XML
PUT /resource-lists/users/sip%3A%2B339012341234%40test-rcs.com/index/~~/resource- lists/list%5B@name=%22rcs%22%5D/entry%5B@uri=%22sip%3A%2B330123456789%40test- rcs.com%3Buser%3Dphone%22%5D HTTP/1.1
Host: 192.168.1.2:8080
User-Agent: TEST-RCS-client 2.5.13
Authorization: Basic WDpY
X-3GPP-Intended-Identity: "X"
Content-type: application/xcap-el+xml
Content-Length:66
<entry uri='sip:+[email]330123456789@test-rcs.com[/email];user=phone'></entry>
2.4 201 Created
HTTP/1.1 201 Created
Date: Thu, 19 Jun 2014 15:32:03 GMT
Content-Length: 0
2.5 NOTIFY
NOTIFY sip:192.168.1.1:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:51419;branch=z9hG4bKb7a8715cd9d04e019149483fac110bee96;rport;transport=udp
Via: SIP/2.0/TCP 192.168.1.2:6061;branch=z9hG4bKf7b78f04185f427fb6f0bcfcace167de;rport=49810
Max-Forwards: 69
From: <sip:presence@test-rcs.com>;tag=0cfe3495adda4142b88a2f341e9cb8d8
To: <sip:+[email]339012341234@test-rcs.com[/email]>;tag=M6g0yaUEAA
Event: presence.winfo
Contact: <sip:presence@test-rcs.com>
Content-Type: application/watcherinfo+xml
Subscription-State: active
Content-Length: 496
CSeq: 3 NOTIFY
Call-ID: [email]M6g0yaUDAA@192.168.1.1[/email]
Record-Route: <sip:192.168.1.2;lr>
<?xml version="1.0" encoding="utf-8"?>
<watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="4" state="full">
<watcher-list resource="sip:+[email]339012341234@test-rcs.com[/email]" package="presence">
<watcher status="active" id="5c7c3f58" display-name="RCS-VUA" event="approved">sip:+330123456789@test- rcs.com</watcher>
<watcher status="active" id="9a20aee7" display-name="test user" event="approved">sip:+339012341234@test- rcs.com</watcher>
</watcher-list>
</watcherinfo>
2.6 200 OK
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.2:51419;branch=z9hG4bKb7a8715cd9d04e019149483fac110bee96;rport=51419;transport=udp;
received=192.168.1.2,SIP/2.0/TCP 192.168.1.2:6061;
branch=z9hG4bKf7b78f04185f427fb6f0bcfcace167de;rport=49810
From: <sip:presence@test-rcs.com>;tag=0cfe3495adda4142b88a2f341e9cb8d8
To: <sip:+[email]339012341234@test-rcs.com[/email]>;tag=M6g0yaUEAA
CSeq: 3 NOTIFY
Call-ID: [email]M6g0yaUDAA@192.168.1.1[/email]
Content-Length: 0
整理:kangguoying20201108
"5G網(wǎng)絡(luò)共享方案介紹"已在微信公眾號"跟著老康學(xué)5G"中推出,敬請關(guān)注!