DeliverSM

.NET library for SMPP protocol
Locked
acikabt
Posts: 2
Joined: Mon Jan 24, 2011 1:30 am

DeliverSM

Post by acikabt » Mon Jan 24, 2011 1:39 am

Update of DeliverSM function has a bug. I'm sending SMS with the method SubmitAsynch to an invalid number, server rejects the message and the client should get status Rejected. It was working correctly in the previous versions, but now it throws Invalid DELIVER_SM packet. Delivery reports are still waiting in queue and the client received data infinite times because client is unable to process the receiving data.


02:35:00: Sending Data: 0000003f000000040000000053ad6eb400000033383937320001014163696b6100000000003131303132363032333530303030302b00010000000474657374
02:35:00: Duration: 00:00:00.0312500
02:35:00: Received Data: 00000019800000040000000053ad6eb4344433443043363500
02:35:00: SubmitSmResp received. Status: ESME_ROK, Message Id: 4D3D0C65, Sequence: 1403874996
02:35:03: Received Data: 000000a9000000050000000000001ad60005004163696b610000013338393732000400000000000000006c69643a3444334430433635207375623a30303120646c7672643a303030207375626d697420646174653a32303131303132343032333520646f6e6520646174653a32303131303132343032333520737461743a52454a45435444206572723a30304220746578743a746573740427000105001e0009344433443043363500
02:35:03: ERROR:Invalid DELIVER_SM packet
02:35:03: Sending Data: 00000010800000000000000200001ad6
02:35:05: Received Data: 000000a9000000050000000000001ad70005004163696b610000013338393732000400000000000000006c69643a3444334430433635207375623a30303120646c7672643a303030207375626d697420646174653a32303131303132343032333520646f6e6520646174653a32303131303132343032333520737461743a52454a45435444206572723a30304220746578743a746573740427000105001e0009344433443043363500
02:35:05: ERROR:Invalid DELIVER_SM packet
02:35:05: Sending Data: 00000010800000000000000200001ad7
02:35:34: Received Data: 000000a9000000050000000000001ade0005004163696b610000013338393732000400000000000000006c69643a3444334430433635207375623a30303120646c7672643a303030207375626d697420646174653a32303131303132343032333520646f6e6520646174653a32303131303132343032333520737461743a52454a45435444206572723a30304220746578743a746573740427000105001e0009344433443043363500
02:35:34: ERROR:Invalid DELIVER_SM packet
02:35:34: Sending Data: 00000010800000000000000200001ade
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: DeliverSM

Post by alt » Mon Jan 24, 2011 6:59 pm

Delivery receipt should contain dates in format yyMMddHHmm, but your
SMSC is sending in format yyyyMMddHHmm

Anyway I added workaround in version 1.0.6
I'll upload new version today.
Locked