Closed moonjunchoi closed 3 years ago
The PDU is presumably a submit_sm_resp
- if you look that up in the SMPP specification, you will see that the phone number is not available from the PDU. Instead, you have to keep this state on your side, by maintaining a window of unacknowledged requests (e.g. in a Map
), using pdu.getSequenceNumber()
to determine which PDU in your window the submit_sm_resp
relates to.
I suggest spending some time with the SMPP spec - it's pretty much essential if you want to use this library. Read at least all the sections up to and including 2.11 (and note especially mention of Timers), which should give you some design clues.
====================================================================== ================================ code ==================================
private class SMPPTestPDUEventListener extends SmppObject implements ServerPDUEventListener { public void handleEvent(ServerPDUEvent event) { this.pdu = event.getPDU();
I brought a piece of my code.
if pdu.isOK() value is false ====> this.failSendCount++
And I will put the failed number in this.phoneNumbers.add("1000000000"); and store it in database
I would like to get a phone number for which texting failed.
In this.phoneNumbers.add ("1000000000") we will put the phone number that failed to transmit.
How can I get the number that failed to transfer?