如何用SMPP发送WAP彩信

news/2024/11/9 13:55:32

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


http://www.niftyadmin.cn/n/3336800.html

相关文章

php5.5+apache2.4+mysql5.7在windows下的配置

apache2.4下载和安装 下载apache2.4 https://www.apachelounge.com/download/VC11/ 提取解压目录Apache24到d:/dev/Apache24 修改d:/dev/Apache24/conf/httpd.conf ServerRoot "d:/dev/Apache24" DocumentRoot "d:/dev/Apache24/htdocs"<Directory &quo…

分布式系统的那些事儿(二) - 线程与进程

线程和进程在之前的文章有讲过&#xff0c;这里简单再说一下吧。 进程&#xff0c;一个程序可以称为一个进程 线程&#xff0c;一个程序中包含多个线程&#xff0c;线程的集合体可以称之为进程。 同一进程中的不同线程可以互相影响&#xff0c;也可以并行操作&#xff08;并发&…

printk函数日志级别的设置【转】

本文转载自&#xff1a; 下面执行cat /proc/sys/kernel/printk 打印出的四个数字分别代表&#xff1a; 控制台日志级别、默认的消息日志级别、最低的控制台日志级别和默认的控制台日志级别 只有当printk的日志级别小于console_loglevel时&#xff0c;消息才能显示出来。 以下为…

LINUX下C/C++常见的几种调试程序的方法

第一章&#xff1a;巧用宏变量 __FILE__:记录源代码文件。 __LINE__&#xff1a;记录源代码行数。(是整数类型) __DATE__&#xff1a;记录编译日期。 __TIME__: 记录编译时间 __func__:记录函数 #include <stdlib.h> #include <stdio.h> int main() { prin…

Linux应用程序访问字符设备驱动详细过程【转】

本文转载自&#xff1a;http://blog.csdn.net/coding__madman/article/details/51346532 下面先通过一个编写好的内核驱动模块来体验以下字符设备驱动 可以暂时先忽略下面的代码实现&#xff01; memdev.c [cpp] view plaincopy #include <linux/module.h> #include <…

Centos 7 Nginx + PHP 安装步骤

Centos 7 下的 PHP7/Nginx/Memcached 安装步骤。对的&#xff0c;没有Mysql,有RDS懒得装Mysql了。 一、获取相关开源程序 1、安装环境所需的程序库 sudo -s LANGC yum -y update yum remove mariadb* yum -y install patch make cmake gcc gcc-c bison flex file libtool libto…

中国区优化的Docker安装脚本

说明 为了方便中国区的用户安装不同版本的docker&#xff0c;我们在这里提供针对中国网络环境优化的安装脚本。它们使用中国的软件包仓库&#xff08;在此感谢USTC&#xff09;。 用法 使用需要的docker版本替换以下脚本中的<docker-version-you-want> curl -sSL https:/…

字符设备驱动模型【转】

本文转载自&#xff1a;http://blog.csdn.net/coding__madman/article/details/51347290 字符驱动编程模型&#xff1a; 1. 设备描述结构cdev 1.1 结构定义 1.2 设备号 1.3 设备操作集 在Linux系统中,设备的类型非常繁多&#xff0c;如&#xff1a;字符设备&#xff0c;块设…