正文
CPIM
CPIM 是“通用存在与即时消息”(Common Presence and Instant Messaging)的缩写,定义于 RFC 3862。它是一种格式描述符(不是协议),主要在 MESSAGE 方法中用作消息格式。
示例 >
MESSAGE sip:+14448880011@sharetechnote.com;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 消息片段突出显示了以下参数:Route、CSeq、P-Access-Network-Info、Max-Forwards、User-Agent。可用这些字段来关联该流程环节中的路由、对话标识、事务时序、注册/会话状态、安全上下文和媒体协商。
+sip.instance=“urn:gsma:imei:35469106-056673-0”
t: sip:+14448880011@sharetechnote.com;user=phone
v: SIP/2.0/TCP [2001::1:88fe:fccf:2870:5dee]:5060;branch=z9hG4bK2629405539smg;transport=TCP
From: sip:310410123456789@sharetechnote.com // CPIM 消息头
To: sip:+14448880011@sharetechnote.com;user=phone // CPIM 消息头
这段 SIP 消息片段突出显示了以下参数:From、To。可用这些字段来关联该流程环节中的路由、对话标识、事务时序、注册/会话状态、安全上下文和媒体协商。
DateTime: 2015-02-17T06:54:27Z// CPIM 消息头
NS: imdn urn:ietf:params:imdn // CPIM 命名空间
imdn.Message-ID: PH7qAIV8cgH5
imdn.Disposition-Notification: positive-delivery, display
Content-type: text/plain;charset=UTF-8 // CPIM MIME 头
Content-Length: 15
这段 SIP 消息片段突出显示了以下参数:Content-Type、Content-Length。可用这些字段来关联该流程环节中的路由、对话标识、事务时序、注册/会话状态、安全上下文和媒体协商。
123456789abcdef // 消息内容