How can I get messageId from deliverSm?

119 views
Skip to first unread message

arden

unread,
Jun 7, 2010, 11:55:10 AM6/7/10
to jsmpp
Hi, all
When using submitShortMessage() to send short message, it will return
a messageId.
String messageId = smppSession.submitShortMessage(....);


If I registered one MessageReceiverListener, I will get a notice. When
deliverSm.isDefaultMessageType() is true, How can I get messageId from
deliverSm?

public void onAcceptDeliverSm(DeliverSm deliverSm) throws
ProcessRequestException {
if (deliverSm.isSmscDeliveryReceipt()) {
...
} else if (deliverSm.isDefaultMessageType()) {

}
}

Thanks a lot.

Vikash Anand

unread,
Jun 8, 2010, 4:27:02 AM6/8/10
to js...@googlegroups.com
Hi,

Please see the samples for SMS receive listener code. It returns a String which is provider specific. The String has messageId somewhere that you can use to identify which SMS was delivered or undelivered. For delivered and undelivered status please contact your service provider to give you exact identifier.

In my case delivered comes as DELIV and undelivered comes as UNDELIV. MessageId comes as message:1234.

Thanks,
Vikash Anand.


--
You received this message because you are subscribed to the Google Groups "jsmpp" group.
To post to this group, send email to js...@googlegroups.com.
To unsubscribe from this group, send email to jsmpp+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jsmpp?hl=en.




--
Thanks and Regards,
Vikash Anand.
Reply all
Reply to author
Forward
0 new messages