Open aTrueSeeker opened 9 months ago
Without any code it's hard to guess but I would start checking the vendor side. This might be something on their side.
If you aren't receiving the messages as well, keep in mind that some brokers put some limits to avoid spam.
If this isn't your case where all sent messages were received and you didn't receive the DLRs, you need to check with them.
@guicuton Thanks for the prompt response :bow:
smpp.on("deliver_sm", async (pdu: any) => {
const message: string = pdu.short_message.message
const sourceAddress: string = pdu.source_addr
const destinationAddress: string = pdu.destination_add
const responsePdu = pdu.response()
smpp.send(responsePdu)
// rest of the logic
That is what my code looks like. When multiple message are sent to my server at the same time only one is being caught in the deliver_sm
callback sometimes both are being caught not sure why this happens. Do you see anything wrong with the code?
Use event submit_sm
to get received message
session.on("submit_sm", async (pdu) => { const message = pdu.short_message.message; const sourceAddress = pdu.source_addr; const destinationAddress = pdu.destination_addr; });
Use event
submit_sm
to get received message
session.on("submit_sm", async (pdu) => { const message = pdu.short_message.message; const sourceAddress = pdu.source_addr; const destinationAddress = pdu.destination_addr; });
Based on the SMPP protocol the submit_sm
only indicates if sending SMS was successful or not, but deliver_sm
is a way to know if the end-user received the SMS or not.
@guicuton Thanks for the prompt response 🙇
smpp.on("deliver_sm", async (pdu: any) => { const message: string = pdu.short_message.message const sourceAddress: string = pdu.source_addr const destinationAddress: string = pdu.destination_add const responsePdu = pdu.response() smpp.send(responsePdu) // rest of the logic
That is what my code looks like. When multiple message are sent to my server at the same time only one is being caught in the
deliver_sm
callback sometimes both are being caught not sure why this happens. Do you see anything wrong with the code?
This is probably a problem with the SMSC you need to talk to them as @guicuton suggested, and your code doesn't seem to have a problem.
I have connected using
bind_transceiver
and is listening ondeliver_sm
. When multiple messages are sent to my app only one is being picked up bydeliver_sm
the other one goes missing. Sometimes the app receives both messages. Any idea why this is happening? Is there something wrong with the way I am listening todeilver_sm
event?