dongmeng1875 2013-06-14 21:33
浏览 194

用于SMS传递的PHP SMPP实现

I am doing PHP SMPP implementation, connecting to SMS SMPP Provider. I have found below PHP library to do that.

www.phpclasses.org/package/1373-PHP-Sends-SMS-messages-via-an-SMPP-server.html

I found Good Example here to send the SMS Messages.

1) How to Receive the message and receive the delivery reports.

2) How i can different if its intermediate delivery report or final delivery report and what is status of messages. ?

3) How to differentiate if its incoming message or delivery report? Sorry i am new to SMPP world.

4) Which pard of below i shall consider?

Below is what i get when i call readPDU() function

Bind Transmitter PDU: 73 110 110 111 118 97 116 105 118 101 116 120 116 0 80 64 119 101 98 49 50 51 52 53 0 87 87 87 0 51 0 0 0 Sending PDU, len == 49 Sending PDU, header-len == 16 Sending PDU, command_id == 2 Trying to read PDU. Reading PDU : 28 bytes. Stream len : 24 Command id : 2. Command status : 0. sequence_number : 1. Got CM_BIND_TRANSMITTER_RESP. system id : OZEKISYSTEM. Received PDU: €(0)(0)(2)(0)(0)(0)(0)(0)(0)(0)(1)OZEKISYSTEM(0) Sending PDU, len == 16 Sending PDU, header-len == 16 Sending PDU, command_id == 21 Trying to read PDU. Reading PDU : 16 bytes. Stream len : 12 Command id : 21. Command status : 0. sequence_number : 2. GOT CM_ENQUIRELINK_RESP. Received PDU: €(0)(0)(21)(0)(0)(0)(0)(0)(0)(0)(2) In split_message. One message: 23 PDU spec: a1cca9cca13ccca1a1ccccca23. Sending PDU, len == 76 Sending PDU, header-len == 16 Sending PDU, command_id == 4 Trying to read PDU. Reading PDU : 24 bytes. Stream len : 20 Command id : 4. Command status : 0. sequence_number : 3. Got CM_SUBMIT_SM_RESP. message id : 19EE3BF. Received PDU: €(0)(0)(4)(0)(0)(0)(0)(0)(0)(0)(3)19EE3BF(0) Sending PDU, len == 16 Sending PDU, header-len == 16 Sending PDU, command_id == 6 Trying to read PDU. Reading PDU : 16 bytes. Stream len : 12 Command id : 6. Command status : 0. sequence_number : 4. Got CM_UNBIND_RESP. Received PDU: €(0)(0)(6)(0)(0)(0)(0)(0)(0)(0)(4)

ANy help will be regarded. ANy body did similar code in past? H

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)