在通信系統(tǒng)中參與的終端(UA)之間信息的交互全部基于自身能力(Capability Information);通常他們交換自身能力是初始通信設(shè)置中的一個強制內(nèi)容,有時終端提供這些信息則是為了回應對方的特殊要求。在WCDMA或LTE網(wǎng)絡(luò)中,終端是在RRC連接配置完成消息中攜帶這些表明其性能的特殊消息。
這些有關(guān)自身能力(Capability Information)的信息對于溝通中的雙方來說都非常重要;這些信息可以自行配置后才可以與另一方進行溝通。此外在進行即時消息交流時這些信息也非常重要,因為在許多情況下信息交流失敗僅僅是因為終端不支持特定功能或特性。
在IMS系統(tǒng)和基于IMS系統(tǒng)的應用程序中也使用類似的機制。對于IMS應用程序有幾種不同的機制消息,它們都攜帶了UE能力相關(guān)信息。對于IMS系統(tǒng)的故障排除,在開始進行故障排除之前,最好檢查一下UE功能的相關(guān)信息。
1.IMS系統(tǒng)中攜帶UE能力的SIP消息
在IMS系統(tǒng)以下七種消息中攜帶了含有UE能力的消息,這些消息分別表明了其支持的功能或性能;
2.攜帶UE能力的消息內(nèi)容(下文中紅色字體部分)
2.1 注冊(Capability Information in REGISTER)
REGISTER sip:test.3gpp.com SIP/2.0
Route: <sip:[2001:0:0:1::2]:5060;lr>
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK
Expires: 600000
Authorization: Digest username="001010123456789@test.3gpp.com",realm="TestIMS.com",
nonce="fn3iiH1LnWqCtFyPUD8qzYxfiiVavYAAmfcxByxmhBg=",algorithm=AKAv1-MD5,
uri="sip:test.3gpp.com",response="9f17517adee640b8895dda33b336f071",
qop=auth,nc=00000002,cnonce="dsf232sun2299674910xyx",
opaque="bbedd3dd5f884860b741b03d36b430ea"
P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=0010100010000001
Contact: <sip:+11234567890@[2001:0:0:1::1]:5060>;
+g.3gpp.smsip;
+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video;
+g.gsma.rcs.telephony="cs,volte";
+sip.instance="<urn:gsma:imei:99000493-686661-0>"
From: <sip:+11234567890@test.3gpp.com>;tag=1334507655
To: <sip:+11234567890@test.3gpp.com>
Call-ID: 266901530@2001:0:0:1::1
CSeq: 4 REGISTER
Max-Forwards: 70
Via: SIP/2.0/UDP [2001:0:0:1::1]:5060;branch=z9hG4bK459934981smg;transport=UDP
Content-Length: 0
2.2 發(fā)布(Capability Information in PUBLISH)
PUBLISH sip:+339012341234@test-rcs.com SIP/2.0
Call-ID: xSh0yaUHAA@192.168.1.1
CSeq: 1 PUBLISH
From: <sip:+339012341234@test-rcs.com>;tag=xSh0yaUIAA
To: <sip:+339012341234@test-rcs.com>
Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK84da5f074a2ba56ea1c0d63f7fa45a54383138;rport
Max-Forwards: 70
Route: <sip:192.168.1.2:5060;transport=udp;lr>
Expires: 3600
SIP-If-Match: ac63be7e9042439dad76da16904cf48d
User-Agent: IM-client/OMA1.0 Test-RCS-client/2.5.13
Event: presence
Content-Type: application/pidf+xml
Content-Length: 2122
<presence
xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:op="urn:oma:xml:prs:pidf:oma-pres"
xmlns:opd="urn:oma:xml:pde:pidf:ext"
xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:ci="urn:ietf:params:xml:ns:pidf:cipid"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
xmlns:gml="urn:opengis:specification:gml:schema-xsd:feature:v3.0"
entity="sip:+339012341234@test-rcs.com">
<tuple id="t1">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.openmobilealliance:File-Transfer</op:service-id>
<op:version>1.0</op:version>
</op:service-description>
<contact>sip:+339012341234@test-rcs.com</contact>
<timestamp>2014-06-19T06:30:45.000Z</timestamp>
</tuple>
<tuple id="t2">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.gsma.imageshare</op:service-id>
<op:version>1.0</op:version>
</op:service-description>
<contact>sip:+339012341234@test-rcs.com</contact>
<timestamp>2014-06-19T06:30:45.000Z</timestamp>
</tuple>
<tuple id="t3">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.gsma.videoshare</op:service-id>
<op:version>1.0</op:version>
</op:service-description>
<contact>sip:+339012341234@test-rcs.com</contact>
<timestamp>2014-06-19T06:30:45.000Z</timestamp>
</tuple>
<tuple id="t4">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.openmobilealliance:IM-session</op:service-id>
<op:version>1.0</op:version>
</op:service-description>
<contact>sip:+339012341234@test-rcs.com</contact>
<timestamp>2014-06-19T06:30:45.000Z</timestamp>
</tuple>
<tuple id="t5">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.3gpp.cs-videotelephony</op:service-id>
<op:version>1.0</op:version>
</op:service-description>
<contact>sip:+339012341234@test-rcs.com</contact>
<timestamp>2014-06-19T06:30:45.000Z</timestamp>
</tuple>
</presence>
2.3選項(Capability Information in OPTION)
OPTIONS sip:192.168.1.1:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 192.168.1.2:51422;branch=z9hG4bKb7a8715cd9d04e019149483fac110beea0;rport;transport=udp
Via: SIP/2.0/TCP 192.168.1.2:49755;branch=z9hG4bKec290e95eb714990adc88d84f09a6367;rport=49836
Max-Forwards: 69
From: <sip:+330123456789@sharetechnote-rcs.com>;tag=33ad62399bdc451d92591e2d9e29903a
To: <sip:+339012341234@sharetechnote-rcs.com>
Date: Thu, 19 Jun 2014 15:40:39 GMT
Expires: 3600
Contact: <sip:+330123456789@sharetechnote-rcs.com>;
+g.3gpp.cs-voice;video;
+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg,
urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg,
urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";
+g.3gpp.iari-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.im,
urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.fullsfgroupchat,
urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.ftthumb,
urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.fthttp,
urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.sp,
urn%3Aurn-7%3A3gpp-application.ims.iari.rcse.dp,
urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geopull"
CSeq: 1 OPTIONS
Call-ID: 334cb0b603964d348a011fc8f87c82cd
Content-Length: 0
Record-Route: <sip:192.168.1.2;lr>
2.4通知(Capability Information in NOTIFY)
SUBSCRIBE sip:+14448880000@one.att.net SIP/2.0
Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK
User-Agent: Samsung IMS 5.0
Accept-Encoding: gzip
Expires: 0
Privacy: id
Accept: application/pidf+xml,multipart/related,application/rlmi+xml
P-Preferred-Identity: <sip:310410123456789@one.att.net>
CSeq: 1 SUBSCRIBE
Max-Forwards: 70
P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=31041000010000000
Route: <sip:[2001:0:0:1::2]:5060;lr>
a: *;+g.oma.sip-im;explicit;require
f: <sip:Anonymous@one.att.net>;tag=1750499527
i: 1148937124@2001::1:4c16:9c0f:4986:9e6d
l: 0
m: <sip:310410123456789@[2001::1:4c16:9c0f:4986:9e6d]:5060>
o: presence
t: <sip:+14448880000@one.att.net>
v: SIP/2.0/UDP [2001::1:4c16:9c0f:4986:9e6d]:5060;branch=z9hG4bK2869593858smg;transport=UDP
NOTIFY sip:310410123456789@[2001::1:4c16:9c0f:4986:9e6d]:5060;transport=udp SIP/2.0
Max-Forwards: 69
Via: SIP/2.0/UDP [2001:0:0:1::2]:5060;branch=z9hG4bK2734c4ccb25347249de8a9cc2b95e81f10;rport
From: <tel:+14448880000>;tag=987654321
To: <sip:310410123456789@[2001::1:4c16:9c0f:4986:9e6d]:5060>;tag=1750499527
Event: presence
Contact: <sip:[2001:0:0:1::2]:5060>
Content-Type: application/pidf+xml
Subscription-State: active;expires=3600
CSeq: 1 NOTIFY
Call-ID: 1148937124@2001::1:4c16:9c0f:4986:9e6d
Content-Length: 2097
<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:op="urn:oma:xml:prs:pidf:oma-pres"
xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:cipid="urn:ietf:params:xml:ns:pidf:cipid"
xmlns:caps="urn:ietf:params:xml:ns:pidf:caps"
entity="sip:+14448880000@one.att.net">
<tuple id="SessModeMessa">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.openmobilealliance:ChatSession</op:service-id>
<op:version>2.0</op:version>
<op:description>Session Mode Messaging</op:description>
</op:service-description>
<contact>sip:+14448880000@one.att.net</contact>
</tuple>
<tuple id="FileTransfer1">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.openmobilealliance:File-Transfer</op:service-id>
<op:version>1.0</op:version>
<op:description>File Transfer</op:description>
</op:service-description>
<contact>sip:+14448880000@one.att.net</contact>
</tuple>
<tuple id="DiscoveryPres">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.3gpp.urn:urn-7:3gpp-application.ims.iari.rcse.dp</op:service-id>
<op:version>1.0</op:version>
<op:description>DiscoveryPresence</op:description>
</op:service-description>
<contact>sip:+14448880000@one.att.net</contact>
</tuple>
<tuple id="StandaloneMsg">
<status><basic>open</basic></status>
<op:service-description>
<op:service-id>org.openmobilealliance:StandaloneMsg</op:service-id>
<op:version>2.0</op:version>
<op:description>StandaloneMsg</op:description>
</op:service-description>
<contact>sip:+14448880000@one.att.net</contact>
</tuple>
<tupleid="VOLTE15456546">
<status><basic>open</basic></status>
<caps:servcaps>
<caps:audio>true</caps:audio>
<caps:video>true</caps:video>
<caps:duplex><caps:supported>
<caps:full />
</caps:supported>
</caps:duplex>
</caps:servcaps>
<op:service-description>
<op:service-id>org.3gpp.urn:urn-7:3gpp-service.ims.icsi.mmtel</op:service-id>
<op:version>1.0</op:version>
<op:description>IPVideoCall</op:description>
</op:service-description>
<contact>sip:+14448880000@one.att.net</contact>
</tuple>
</presence>
2.5邀請(Capability Information in INVITE)
INVITE sip:310410123456789@[2001::1:f8b5:503a:c5d0:2fea]:6000 SIP/2.0
Via: SIP/2.0/UDP [2001:0:0:1::2]:62993;branch=z9hG4bKd7e3f6cf946a49618e8be0a37cc4a65b53;transport=udp
Via: SIP/2.0/UDP [2001:0:0:1::2]:62984;branch=z9hG4bK3a2fa06cd53440b7a93217d703d8792a963b2071
Max-Forwards: 69
Call-ID: bbae9438711d47d283895a10f920c2db
CSeq: 11001 INVITE
To: <sip:310410123456789@sharetechnote.net>
From: <sip:0123456789@sharetechnote.net>;tag=1111111111
Feature-Caps: +g.3gpp.srvcc-alerting
Allow: ACK, BYE, CANCEL, INVITE, PRACK, UPDATE
Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";require;explicit
User-Agent: Test-VirtualUA/95adfae
Content-Type: application/sdp
Content-Length: 456
Contact: <sip:0123456789@[2001:0:0:1::2]:62984;transport=udp>;+g.3gpp.icsi-ref="urn:urn-7:3gpp- service.ims.icsi.mmtel";video;+g.3gpp.srvcc-alerting
Privacy: none
P-Asserted-Identity: <sip:0123456789@sharetechnote.net>
Record-Route: <sip:[2001:0:0:1::2]:62993;lr>
2.6180振鈴(Capability Information in 180 Ringing)
SIP/2.0 180 Ringing
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK
CSeq: 11001 INVITE
Record-Route: <sip:[2001:0:0:1::2]:62993;lr>
P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=31041000010000001
f: <sip:0123456789@sharetechnote.net>;tag=1111111111
i: bbae9438711d47d283895a10f920c2db
l: 0
m: <sip:310410123456789@[2001::1:f8b5:503a:c5d0:2fea]:6000>;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";require;explicit;+g.3gpp.srvcc-alerting;mobility="mobile"
t: <sip:310410123456789@sharetechnote.net>;tag=506663245
v: SIP/2.0/UDP [2001:0:0:1::2]:62993;branch=z9hG4bKd7e3f6cf946a49618e8be0a37cc4a65b53;transport=udp,SIP/2.0/UDP [2001:0:0:1::2]:62984;branch=z9hG4bK3a2fa06cd53440b7a93217d703d8792a963b2071
2.7 200(OK)Capability Information in 200 OK
SIP/2.0 200 OK
Accept: application/sdp,application/3gpp-ims+xml
Allow: INVITE,ACK,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK
Security-Verify: ipsec-3gpp;q=0.1;alg=hmac-md5-96;ealg=null;prot=esp;mod=trans;spi-c=2340907816;spi- s=1826487465;port-c=62992;port-s=62993
Max-Forwards: 70
User-Agent: Samsung IMS 5.0
CSeq: 11001 INVITE
Record-Route: <sip:[2001:0:0:1::2]:62993;lr>
P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=31041000010000001
c: application/sdp
f: <sip:0123456789@sharetechnote.net>;tag=1111111111
i: bbae9438711d47d283895a10f920c2db
k: timer
l: 375
m: <sip:310410123456789@[2001::1:f8b5:503a:c5d0:2fea]:6000>;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp- service.ims.icsi.mmtel";require;explicit;+g.3gpp.mid-call;mobility="mobile"
t: <sip:310410123456789@sharetechnote.net>;tag=506663245
v: SIP/2.0/UDP [2001:0:0:1::2]:62993;branch=z9hG4bKd7e3f6cf946a49618e8be0a37cc4a65b53;transport=udp,SIP/2.0/UDP [2001:0:0:1::2]:62984;branch=z9hG4bK3a2fa06cd53440b7a93217d703d8792a963b2071
整理:kangguoying20201107
"5G網(wǎng)絡(luò)共享方案介紹"已在微信公眾號"跟著老康學5G"中推出,敬請關(guān)注!