1

如何使用 Logica smpp 发送 DeliverSMResp?我看到那个类Sessionrespond方法,但我不明白如何从 SMSC 接收到的DeliverSMResp类对象。PDU

public void handleEvent(ServerPDUEvent event) {
        PDU pdu = event.getPDU();
        System.out.println("PDU RECEIVED - " + pdu);
        if (pdu.isRequest()) {
            try{
                System.out.println("async request received, enqueuing " + pdu.debugString());
                session.respond(???????);
            }

我有假设:

    DeliverSMResp deliverSMResp = new DeliverSMResp();
        deliverSMResp.setSequenceNumber(pdu.getSequenceNumber());
        starter.getSession().respond(deliverSMResp);

但我不确定。

4

1 回答 1

1
   DeliverSMResp deliverSMResp = new DeliverSMResp();
   deliverSMResp.setSequenceNumber(pdu.getSequenceNumber());
   starter.getSession().respond(deliverSMResp);

有用!

于 2012-02-22T07:29:40.957 回答