ENROUTE message state

283 views
Skip to first unread message

Maciej Pigulski

unread,
Mar 19, 2009, 3:57:42 AM3/19/09
to jsmpp
Hello,

from some time I'm getting some new message status from SMSC called
ENROUTE and this state causes a nasty exception:

Failed getting delivery receipt
org.jsmpp.util.InvalidDeliveryReceiptException: There is an error
found when parsing delivery receipt
at org.jsmpp.util.DefaultDecomposer.deliveryReceipt
(DefaultDecomposer.java:420)
at org.jsmpp.util.DefaultDecomposer.deliveryReceipt
(DefaultDecomposer.java:432)
at org.jsmpp.bean.DeliverSm.getShortMessageAsDeliveryReceipt
(DeliverSm.java:42)
at
org.jsmpp.examples.MessageReceiverListenerImpl.onAcceptDeliverSm
(MessageReceiverListenerImpl.java:35)
at org.jsmpp.session.SMPPSession.fireAcceptDeliverSm
(SMPPSession.java:443)
at org.jsmpp.session.SMPPSession.access$400(SMPPSession.java:
92)
at org.jsmpp.session.SMPPSession
$ResponseHandlerImpl.processDeliverSm(SMPPSession.java:460)
at org.jsmpp.session.state.SMPPSessionBoundRX.processDeliverSm0
(SMPPSessionBoundRX.java:109)
at org.jsmpp.session.state.SMPPSessionBoundTRX.processDeliverSm
(SMPPSessionBoundTRX.java:42)
at org.jsmpp.session.PDUProcessTask.run(PDUProcessTask.java:
81)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: No enum const class
org.jsmpp.util.DeliveryReceiptState.ENROUTE
at java.lang.Enum.valueOf(Unknown Source)
at org.jsmpp.util.DeliveryReceiptState.getByName
(DeliveryReceiptState.java:60)
at org.jsmpp.util.DefaultDecomposer.deliveryReceipt
(DefaultDecomposer.java:412)
... 12 more

After adding

/**
* ENROUTE
*/
ENROUTE(8);

to DeliveryReceiptState everything is back to normal. According to
SMPP v3.4 there are 8 message states:
- ENROUTE
- DELIVERED
- EXPIRED
- DELETED
- UNDELIVERABLE
- ACCEPTED
- UNKNOWN
- REJECTED

but ENROUTE was somehow missing (probably by mistake).

Regards,
Maciej

uud ashr

unread,
Mar 19, 2009, 11:43:07 PM3/19/09
to js...@googlegroups.com
Hmm, I didn't found ENROUTE on my document. Currently using SMPP v3.4 issue 1.2 (12-Oct-1999). We might using different document. Can you send me the document.

Maciej Pigulski

unread,
Mar 20, 2009, 3:27:17 AM3/20/09
to js...@googlegroups.com
Weird, I have the same document version, see the attached pdf file.
--
Best regards,
Maciej Pigulski
SMPP_v3_4_Issue1_2.pdf

Maciej Pigulski

unread,
Mar 20, 2009, 3:29:58 AM3/20/09
to jsmpp
I've sent it by accident js...@googlegroups.com

On 20 Mar, 04:43, uud ashr <uuda...@gmail.com> wrote:
> Hmm, I didn't found ENROUTE on my document. Currently using SMPP v3.4 issue
> 1.2 (12-Oct-1999). We might using different document. Can you send me the
> document.
>
> On Thu, Mar 19, 2009 at 2:57 PM, Maciej Pigulski
> <maciej.pigul...@gmail.com>wrote:

Maciej Pigulski

unread,
Mar 20, 2009, 3:35:20 AM3/20/09
to jsmpp

uud ashr

unread,
Mar 20, 2009, 4:10:12 AM3/20/09
to js...@googlegroups.com
I see. The ENROUTE is only valid if it returned along with QUERY_SM_RESP, not Delivery Receipt. So there is nothing wrong with jsmpp.

You can search for "ENROUTE" on document, it is message_state for query_sm_resp.

Maciej Pigulski

unread,
Mar 20, 2009, 6:58:21 AM3/20/09
to jsmpp
Hmm, do you have any idea how should I handle this state using
MessageReceiverListener? I'm receiving this state from SMSC when
sending messages with UDHI headers (smses built from 2 or more
messages). First it's state is ENROUTE, then it takes some time for
SMSC to deliver long messages (usualy about a minute) and next DELIVRD
status arrives.

On 20 Mar, 09:10, uud ashr <uuda...@gmail.com> wrote:
> I see. The ENROUTE is only valid if it returned along with QUERY_SM_RESP,
> not Delivery Receipt. So there is nothing wrong with jsmpp.
> You can search for "ENROUTE" on document, it is message_state for
> query_sm_resp.
>
> On Fri, Mar 20, 2009 at 2:35 PM, Maciej Pigulski
> <maciej.pigul...@gmail.com>wrote:
>
>
>
> > Anyway, it is the same pdf document I've attached some time ago to
> > jsmpp files (http://groups.google.com/group/jsmpp/files)
>
> > Direct link:
>
> >http://jsmpp.googlegroups.com/web/SMPP_v3_4_Issue1_2.pdf?gda=meLj7EgA...
Reply all
Reply to author
Forward
0 new messages