Pager-mode模式
当要发送的内容小于STANDALONE SWITCHOVER SIZE时,终端采用Pager-mode发送消息,STANDALONE SWITCHOVER SIZE默认1300字节。
1.用户发送Pager即时消息
与一般的message消息不同点有以下:
- Accept-Contact字段中,携带业务标签,此处置为“*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg"”,标识为Pager Mode消息
- Conversation-ID字段,唯一标识主被叫用户之间的一个聊天,主被叫用户之间的多个会话此头域相同。
- Contribution-ID 在流程中标识一次会话
消息举例(消息体中不带接收者列表):
MESSAGE sip:+8613800138002@bj.ims.mnc000.mcc460.3gppnetwork.org SIP/2.0
Via: SIP/2.0/UDP 182.1.1.203:41200;branch=z9hG4bK1392970087646
Call-ID: 13929700876@182.1.1.203
From: <sip:+8613800138001@bj.ims.mnc000.mcc460.3gppnetwork.org>;tag=1019902356
To: <sip:+8613800138002@bj.ims.mnc000.mcc460.3gppnetwork.org>
CSeq: 1 MESSAGE
Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,UPDATE
Max-Forwards: 70
Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg"
User-Agent: CPM-client/OMA2.2 RCS-client/UP_2.4 term-Vendor1/Model1-XXXX client-CLN1/Software1234 OS-Android/8.1
Content-Length: 417
P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.oma.cpm.msg
P-Preferred-Identity: <sip:+8613800138001@bj.ims.mnc000.mcc460.3gppnetwork.org>
Conversation-ID:u13900010001010203
Contribution-ID:u201403011700010003
Content-Type: message/cpim
From: <sip: +8613800138001@bj.ims.mnc000.mcc460.3gppnetwork.org >
To: sip: +8613800138002@bj.ims.mnc000.mcc460.3gppnetwork.org
NS: imdn<urn:ietf:params:imdn>
imdn.Message-ID: W8dcbOvf
DateTime: 2012-09-01T11:46:43.35+08:00
imdn.Disposition-Notification: display
Content-Type:text/plain;charset=UTF-8
Content-Length:31
Content-Transfer-Encoding: base64
c3Nzc3Nz
消息体中带接收者列表
MESSAGE sip:msgas@ as1.gc.rcs.chinamobile.com.org SIP/2.0
Via: SIP/2.0/UDP 182.1.1.203:41200;branch=z9hG4bK1392970087646
Call-ID: 13929700876@182.1.1.203
From: <sip:+8613800138001@bj.ims.mnc000.mcc460.3gppnetwork.org>;tag=1019902356
To: <sip:+8613800138002@bj.ims.mnc000.mcc460.3gppnetwork.org>
CSeq: 1 MESSAGE
Require: recipient-list-message
Max-Forwards: 70
Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg"
P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.oma.cpm.msg
Conversation-ID:u13900010001010203
Contribution-ID:u201403011700010003
Content-Length: 417
Content-Type: multipart/mixed;boundary=jXfWUFcrCxZEXdN
--jXfWUFcrCxZEXdN
Content-Type: application/resource-lists+xml
Content-Length:295
Content-Disposition: recipient-list
<?xml version="1.0" encoding="UTF-8"?>
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cp="urn:ietf:params:xml:ns:capacity">
<list>
<entry uri="sip:+8613800138003@bj.ims.mnc000.mcc460.3gppnetwork.org" cp:capacity="bcc"/>
<entry uri=" sip:+8613800138004@bj.ims.mnc000.mcc460.3gppnetwork.org" cp:capacity="bcc"/>
</list>
</resource-lists>
--jXfWUFcrCxZEXdN
Content-Type: message/cpim
Content-Length:104
From: < anonymous@anonymous.invalid >
To: < anonymous@anonymous.invalid >
Content-Type:text/plain;charset=UTF-8
Content-Length:45
Content-Transfer-Encoding: base64
c3Nzc3Nz
--jXfWUFcrCxZEXdN--
2.5G消息中心向接收方发送Pager即时消息
- Accept-Contact字段中,携带业务标签,此处置为“*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg"”,标识为Pager Mode消息
- Conversation-ID字段,唯一标识主被叫用户之间的一个聊天,主被叫用户之间的多个会话此头域相同。
- Contribution-ID 在流程中标识一次会话
Large Message-mode模式
1.用户发送大消息协商
- Accept-Contact字段中,携带业务标签,此处置为*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg",标识为Large Message-mode消息
- SDP消息部分包含M
媒体名称和传输地址=<media> <port> <transport> <fmtlist>
media: 媒体类型
port: 传输端口
transport: 传输协议
fmtlist: 媒体格式
transport取决于c中的地址类型
一对一Large Message Mode消息
INVITE sip:+8613800138002@bj.ims.mnc000.mcc460.3gppnetwork.org SIP/2.0
Via: SIP/2.0/UDP 10.66.139.77:41200;branch=z9hG4bK1390701187345
Call-ID: 13907011873@10.66.139.77
From: <sip:+8613800138001@bj.ims.mnc000.mcc460.3gppnetwork.org>;tag=3429865694
To: sip:+8613800138002@bj.ims.mnc000.mcc460.3gppnetwork.org
CSeq: 1 INVITE
Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,UPDATE
Contact: <sip:user1@10.66.139.77:41200;+g.3gpp.icsi-ref=“urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg”>
Max-Forwards: 70
Supported: 100rel,join,norefersub,path,replaces,timer
Conversation-ID:u13900010001010203
Contribution-ID:u201403011700010004
P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.oma.cpm.largemsg
Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg"
Session-Expires: 1800
Min-SE: 90
Content-Length: 221
Content-Type: application/sdp
v=0
o=Spider-Phone 155 204 IN IP4 10.66.139.77
s=-
c=IN IP4 10.66.139.77
t=0 0
m=message 22100 TCP/MSRP *
a=path:msrp://10.66.139.77:22100/22100;tcp
a=setup:active
a=accept-type:message/cpim
a=sendonly
2.消息处理模块向接收方终端发送大消息能力协商
- Accept-Contact字段中,携带业务标签,此处置为*;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg",标识为Large Message-mode消息