在IMS和SIP的消息(Message)通过“消息会话中继协议”MSRP( Message Session Relay Protocol)定义;其初期设置是为了在IP网络了传送短消息和视频,这类业务我们也称中“即时信息”IM((Instant Messaging);从应用层来看顾类似于短信(SMS)和彩信(MMS); "消息会话中继协议”MSRP主要应用于"富媒体系统"(RCS);
“消息会话中继协议”MSRP共有两类:Pager Mode和Session Mode,其中:
Pager Mode主要用于短消息(类似SMS)业务交互;
Session Mode主要用于多媒体消息(类似MMS)业务交互;
1.Pager Mode特点
Pager Mode主要用于短消息(文本消息)业务,具体以下特点:
2.Pager Mode缺点
Pager Mode在协议方面比较简单,但也有不少缺点,如:
3.Pager Mode应用示例
Pager Mode应用只是简单的 MESSAGE和 200 OK。在实际应用中可能运营商要求提交发送报告;
Step | Direction | Protocol | Message | Comments |
(1) | UA1 --> Proxy/UA2 | SIP | MESSAGE | Send a text '123456789abcdef' |
(2) | UA1 <-- Proxy/UA2 | SIP | 200 OK |
|
3.1 MESSAGE
MESSAGE sip:+[email]14448880011@sharetechnote.com[/email];user=phone SIP/2.0
P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.oma.cpm.msg
Contribution-ID: 477b66ae9662e3ad18549bf5dabf9d26d5e707ca
Conversation-ID: 1710887c7ca47dc2c1274c11673eb0df5a604fd3
P-Preferred-Identity: <sip:310410123456789@sharetechnote.com>
Request-Disposition: no-fork
User-Agent: TEST IMS 5.0
CSeq: 1 MESSAGE
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.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg"
c: message/cpim
f: <sip:310410123456789@sharetechnote.com>;tag=1384874566
i: 3712948749@2001::1:88fe:fccf:2870:5dee
l: 322
m: <sip:310410123456789@[2001::1:88fe:fccf:2870:5dee]:5060>;
+sip.instance="<urn:gsma:imei:35469106-056673-0>"
t: <sip:+[email]14448880011@sharetechnote.com[/email];user=phone>
v: SIP/2.0/TCP [2001::1:88fe:fccf:2870:5dee]:5060;branch=z9hG4bK2629405539smg;transport=TCP
From: <sip:310410123456789@sharetechnote.com>
To: <sip:+[email]14448880011@sharetechnote.com[/email];user=phone>
DateTime: 2015-02-17T06:54:27Z
NS: imdn <urn:ietf:params:imdn>
imdn.Message-ID: PH7qAIV8cgH5
imdn.Disposition-Notification: positive-delivery, display
Content-type: text/plain;charset=UTF-8
Content-Length: 15
123456789abcdef
3.2 200 OK
SIP/2.0 200 OK
Max-Forwards: 70
Via: SIP/2.0/TCP [2001::1:88fe:fccf:2870:5dee]:5060;branch=z9hG4bK2629405539smg;transport=TCP
From: <sip:310410123456789@sharetechnote.com>;tag=1384874566
To: <sip:+[email]14448880011@sharetechnote.com[/email];user=phone>;tag=73335cbb32b744baaaf5097a34431c92
Call-ID: 3712948749@2001::1:88fe:fccf:2870:5dee
CSeq: 1 MESSAGE
Server: TEST-RCS-serv/OMA1.0
Content-Length: 0
原文来自:http://www.sharetechnote.com/
整理:kangguoying20201003
"无会话,非5G”已在微信公众号"跟着老康学5G"中推出,敬请关注!
链接如下:https://mp.weixin.qq.com/s/AX3MCn1woaSRrDVd2nkrtA