如何用SMPP发送WAP彩信

简介: 如何用SMPP发送WAP彩信

SMPP的头域GSM Features设置为0x40,用来表明SMPP的短信体携带UDHI。


SMPP的头域Data Coding设置为0xF5。


Body中前11个字节为0x0B 0X05 0X04 0X0B 0X84 0X23 0XF0 0X00 0X03 0XE1 0X01 0X01;


Body后面就是MMSE封装的彩信号码、彩信大小和彩信的HTTP地址。


具体请看下我导出的SMPP发送WAP彩铃的包体结构:


Short Message Peer to Peer, Command: Submit_sm, Seq: 36, Len: 188
    Length: 188
    Operation: Submit_sm (0x00000004)
    Sequence #: 36
    Service type: WAP
    Type of number (originator): Unknown (0x00)
    Numbering plan indicator (originator): ISDN (E163/E164) (0x01)
    Originator address: 5000
    Type of number (recipient): International (0x01)
    Numbering plan indicator (recipient): ISDN (E163/E164) (0x01)
    Recipient address: 959425000000
    .... ..00 = Messaging mode: Default SMSC mode (0x00)
    ..00 00.. = Message type: Default message type (0x00)
    01.. .... = GSM features: UDHI indicator (0x01)
    Protocol id.: 0x00
    Priority level: GSM: None      ANSI-136: Bulk         IS-95: Normal (0x00)
    Scheduled delivery time: Immediate delivery
    Validity period: SMSC default validity period
    .... ..01 = Delivery receipt: Delivery receipt requested (for success or failure) (0x01)
    .... 00.. = Message type: No recipient SME acknowledgement requested (0x00)
    ...0 .... = Intermediate notif: No intermediate notification requested (0x00)
    .... ...0 = Replace: Don't replace (0x00)
    Data coding: 0xf5
        SMPP Data Coding Scheme: Unknown (0xf5)
        GSM SMS Data Coding
        1111 .... = DCS Coding Group for SMS: SMS DCS: Data coding / message class (0x0f)
        .... 01.. = DCS Character set: 8-bit data (0x01)
        .... ..01 = DCS Message class: Class 1 - ME specific (0x01)
        GSM CBS Data Coding
        1111 .... = DCS Coding Group for CBS: SMS DCS: Data coding / message class (0x0f)
        .... 01.. = DCS Character set: 8-bit data (0x01)
        .... ..01 = DCS CBS Message class: Class 1 - User defined (0x01)
    Predefined message: 0
    Message length: 136
    Message
GSM Short Message Service User Data
    UDH Length: 11
        IE Id: SMS - Application port addressing scheme, 16 bit address (0x05): source port 9200, destination port 2948
            Destination port: 2948
            Source port: 9200
        IE Id: SMS - Concatenated short messages, 8-bit reference number (0x00): message 225, part 1 of 1
            Message identifier: 225
            Message parts: 1
            Message part number: 1
Wireless Session Protocol, Method: Push (0x06), Content-Type: application/vnd.wap.mms-message
    Transaction ID: 0x01
    PDU Type: Push (0x06)
    Headers Length: 40
    Content-Type: application/vnd.wap.mms-message
    Headers
        Push-Flag:  (Content trusted)
            .... ...0 = Initiator URI is authenticated: False (0)
            .... ..1. = Content is trusted: True (1)
            .... .0.. = Last push message: False (0)
        X-Wap-Application-Id: x-wap-application:mms.ua
        Content-Length: 81
MMS Message Encapsulation, Type: m-notification-ind
    X-Mms-Message-Type: m-notification-ind (0x82)
    X-Mms-Transaction-ID: MNPESW3WAAA
    X-Mms-MMS-Version: 1.0
    From: 959425000000
    X-Mms-Message-Class: Personal (0x80)
    X-Mms-Message-Size: 351
    X-Mms-Expiry: 259140.000000000 seconds
    X-Mms-Content-Location: http://mpt.mmsc.com/was/MNPESW3WA


20210331162013538.png

相关文章
|
3月前
|
API 数据安全/隐私保护 开发者
怎么发电子邮件?aoksendAPI接口发信方法
怎么发电子邮件?aoksendAPI接口发信方法
|
2月前
|
API
企业微信api接口调用-企业微信好友收发消息
企业微信api接口调用-企业微信好友收发消息
|
3月前
|
XML JSON Java
Android App开发即时通信中通过SocketIO在客户端与服务端间传输文本和图片的讲解及实战(超详细 附源码)
Android App开发即时通信中通过SocketIO在客户端与服务端间传输文本和图片的讲解及实战(超详细 附源码)
235 0
|
9月前
|
XML 缓存 语音技术
08 公众号开发 - 接收和回复其它普通消息(图片视频等)
08 公众号开发 - 接收和回复其它普通消息(图片视频等)
28 0
|
JSON JavaScript 安全
基于Windows微信实现实时收发微信消息App
基于Windows微信实现实时收发微信消息App
1311 0
基于Windows微信实现实时收发微信消息App
|
JSON JavaScript 前端开发
微信开发系列之十 - 在SAP C4C接收微信发送过来的服务请求回应
微信开发系列之十 - 在SAP C4C接收微信发送过来的服务请求回应
微信开发系列之十 - 在SAP C4C接收微信发送过来的服务请求回应
|
C# Windows 数据安全/隐私保护