分类: LINUX
2006-11-15 13:25:03
MMS Notification Short Message 结构:
下面供分析的Message来自now.sms.mms.gateway软件收到mms notification的Debug信息。
0891683108100005F04404A13325000460015232953523880605040B8423F0A506246170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B487AF848C82985A58373268634D416C713741008D9083687474703A2F2F3231382E3230302E3234392E33382F5A58373268634D416C713741008805810302A300891680353535353136303130332F545950453D504C4D4E008A828E010D
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 |
Content type: (8 bit
encoding of) |
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 |
Content-Location: |
88 05 81 0302A300 |
Expiry + Length + Relative-token + Delta-secs: 54.8 hour? |
89
16 80 353535353136303130332 |
From + Length +
Address-Present-token: |
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 ()
5.2 Building an MMS PDU
Ref 1: ETSI TS 123 040 Technical realization of SMS
9.1.2.5 Address fields
9.2.2.1 SMS-DELIVER type
Ref 2: Wireless Datagram Protocol Specification
6.3 Mapping of WDP for GSM SMS
Appendix B. Port Number Definitions
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
hppyhjh@tom.com » 20061115
chinaunix网友2009-04-29 15:04:10
解释的问题好多。。。。。。比如说AF84 X-Wap-Application-Id: 84 ,应该是AF84 X-Wap-Application-Id: 4