一、MMS Notification
解析
MMS Notification Short Message 结构:
![](http://blogimg.chinaunix.net/blog/upfile/061115132456.gif)
下面供分析的Message来自now.sms.mms.gateway软件收到mms notification的Debug信息。
0891683108100005F04404A13325000460015232953523880605040B8423F0A506246170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B487AF848C82985A58373268634D416C713741008D9083687474703A2F2F3231382E3230302E3234392E33382F5A58373268634D416C713741008805810302A300891680353535353136303130332F545950453D504C4D4E008A828E010D
0891683108100005F0
Octet(s) | Description |
08 | Length of the SMSC |
91 | international |
683108100005F0 | Service center |
(see Ref 1)
4404A1332500046001523295352388
Octet(s) | Description |
44 | First octet of this |
04 | Length Of the |
A1 | National |
3325 | Sender number, |
00 | TP-PID |
04 | TP-DCS ( 8 bit |
60015232953523 | TimeStamp: Wed Oct |
88 | TP-UDL |
(see Ref 1)
下面是TP-UD部分:
0605040B8423F0
Octet(s) | Description |
06 | UDHL (user data |
05 | Information Element identifier: Application port |
04 | Information element |
0B84 | Destination |
23F0 | Originating |
(see Ref 2)
A506246170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B487
AF84
Octet(s) | Description |
A5 | Transaction |
06 | PDU Type: |
24 | Length of Content |
6170706C69636174696F6E2F766 | Content type: (8 |
B4 87 | Push Flag: |
AF84 | X-Wap-Application-Id: |
(see Ref 3)
8C82985A58373268634D416C713741008D9083687474703A2F2F3231382E3230302E3234392E
33382F5A58373268634D416C713741008805810302A300891680353735373136303130332F545
950453D504C4D4E008A828E010D
Octet(s) | Description |
8C 82 | X-Mms-Message-Type: |
98 | Transaction-ID: |
8D 90 | MMS-Version: |
83 | Content-Location: |
88 05 81 | Expiry + Length + Relative-token + 54.8 |
89 16 80 | From + Length + |
8A 82 | Msg-Class: |
8E 010D | Msg-Size: |
(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