免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 743 | 回复: 0
打印 上一主题 下一主题

MMS Notification 解析 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-15 13:25 |只看该作者 |倒序浏览

  一、MMS
  Notification
  解析
  
  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
        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
  
  hppyhjh@tom.com » 20061115
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2355/showart_200663.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP