百度空间 | 百度首页 
 
查看文章
 
MMS Notification 解析(转)
2009-06-16 21:13

转自:http://blog.chinaunix.net/u/2355/showart_200663.html

MMS Notification Short Message 结构:

下面供分析的Message来自now.sms.mms.gateway软件收到mms notificationDebug信息。

0891683108100005F04404A13325000460015232953523880605040B8423F0

A506246170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B487AF848C82985A58373268634D416C713741008D9083687474703A2F2F3231382E3230302E3234392E333

82F5A58373268634D416C713741008805810302A300891680353535353136303130332F545950453D

504C4D4E008A828E010D

0891683108100005F0

Octet(s)

Description

08

Length of the SMSC info

91

international format

683108100005F0

Service center number, +8613800100500

(see Ref 1)

4404A1332500046001523295352388

Octet(s)

Description

44

First octet of this SMS-DELIVER message.

04

Length Of the Sender info

A1

National format

3325

Sender number, 3352

00

TP-PID

04

TP-DCS ( 8 bit data)

60015232953523

TimeStamp: Wed Oct 25 23:59:53 CST 2006

88

TP-UDL

(see Ref 1)

下面是TP-UD部分:

0605040B8423F0

Octet(s)

Description

06

UDHL (user data header length)

05

Information Element identifier:

Application port addressing 16 bit.

04

Information element length

0B84

Destination port

23F0

Originating port

(see Ref 2)

A506246170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B487
AF84

Octet(s)

Description

A5

Transaction ID

06

PDU Type: Push

24

Length of Content type + Header

6170706C69636174696F6E2F766
E642E7761702E6D6D732D6D65737361676500

Content type: (8 bit encoding of)
application/vnd.wap.mms-message

B4 87

Push Flag: 87

AF84

X-Wap-Application-Id: 84

(see Ref 3)

8C82985A58373268634D416C713741008D9083687474703A2F2F3231382E3230302E3234392E
33382F5A58373268634D416C713741008805810302A300891680353735373136303130332F545
950453D504C4D4E008A828E010D

Octet(s)

Description

8C 82

X-Mms-Message-Type: m-notification-ind

98 5A58373268634D416C71374100

Transaction-ID: ZX72hcMAlq7A

8D 90

MMS-Version: 1.0

83 687474703A2F2F3231382E3230302E32
34392E33382F5A58373268634D416C71374100

Content-Location:
http://218.200.249.38/ZX72hcMAlq7A

88 05 81 0302A300

Expiry + Length + Relative-token + Delta-secs:

54.8 hour?

89 16 80 353535353136303130332
F545950453D504C4D4E00

From + Length + Address-Present-token:
5555160103/TYPE=PLMN

8A 82

Msg-Class: Info

8E 010D

Msg-Size: 269

(see Ref 4)

到此完整的mms notification msg解析结束。看specification实在是枯燥无味,耗费时间的事情。

这些解析实在是应该由电脑来完成,而非人脑。

二、相关书籍介绍

Multimedia Messaging Service - An Engineering Approach to MMS

6.2.2 Message Notification

        How_to_create_MMS_services http://www.forum.nokia.com/

5.2 Building an MMS PDU

三、Refrence

Ref 1: ETSI TS 123 040 Technical realization of SMS

9.1.2.5 Address fields

9.2.2.1 SMS-DELIVER type

        http://webapp.etsi.org/key/queryform.asp

Ref 2: Wireless Datagram Protocol Specification

6.3 Mapping of WDP for GSM SMS

Appendix B. Port Number Definitions

http://www.openmobilealliance.org/tech/affiliates/wap/wapindex.html

Ref 3: Wireless Session Protocol Specification

8.2.1 PDU Common Fields

Appendix A Assigned Numbers

8.2.4.1 Push and ConfirmedPush

8.4.2 Header syntax

Ref 4: wap209 MMS Encapsulcation Protocol

7. Binary Encoding of PDU


类别:Mobile | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu