Delivery Status Problem

.NET library for SMPP protocol
Locked
tamer
Posts: 7
Joined: Mon Aug 22, 2011 8:31 am

Delivery Status Problem

Post by tamer » Sat Sep 10, 2011 12:19 pm

hi,
my company is welling to buy the InetLab.SMPP so, we made some tests on the demo dll - but we found a strange problem when making a deliversm() package

when the satus is anything but MessageState.Delivered - it is delivered right to the client but when it is MessageState.Delivered the status is not written in the delivery report in the client side

we made the test using different smpp clients including your smpp client demo but the result is the same

could you please review this problem - and respond as soon as possible

thanks
tamer
Posts: 7
Joined: Mon Aug 22, 2011 8:31 am

Re: Delivery Status Problem

Post by tamer » Sat Sep 10, 2011 2:23 pm

This is also a capture from the dlr received for three different cases -
Capture.PNG
Capture.PNG (5.61 KiB) Viewed 24154 times
note: the delived status is not shown
AhmedShabana
Posts: 1
Joined: Sun Sep 11, 2011 11:13 am

Re: Delivery Status Problem

Post by AhmedShabana » Sun Sep 11, 2011 11:17 am

I have the Same problem Please help
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Delivery Status Problem

Post by alt » Sun Sep 11, 2011 12:32 pm

What version do you test?
tamer
Posts: 7
Joined: Mon Aug 22, 2011 8:31 am

Re: Delivery Status Problem

Post by tamer » Sun Sep 11, 2011 12:49 pm

version 1.0.11.0
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Delivery Status Problem

Post by alt » Sun Sep 11, 2011 12:55 pm

As far as I understood you are sending delivery receipt to the client.
How do you create Receipt class instance? Could you post here your code?
tamer
Posts: 7
Joined: Mon Aug 22, 2011 8:31 am

Re: Delivery Status Problem

Post by tamer » Sun Sep 11, 2011 1:04 pm

Code: Select all

                            Inetlab.SMPP.PDU.DeliverSm dsm = new Inetlab.SMPP.PDU.DeliverSm();

                            dsm.SourceAddr = "0770700";
                            dsm.DestAddr = "20103695478";
                            dsm.DataCoding = Inetlab.SMPP.Common.DataCodings.ASCII;
                            dsm.UserDataPdu = new Inetlab.SMPP.Common.UserData();

                            dsm.Receipt = new Inetlab.SMPP.Common.Receipt();
                            dsm.Receipt.DoneDate = DateTime.Now;

                            dsm.Receipt.State = MessageState.Delivered;
                            dsm.Receipt.MessageId = "32569874";
                            dsm.Receipt.ErrorCode = "000";
                            dsm.Receipt.SubmitDate = DateTime.Now;

                            Inetlab.SMPP.PDU.DeliverSmResp response = client.Deliver(dsm);
and notice when I put any state other than Delivered - it works as in the snapshot I sent before
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Delivery Status Problem

Post by alt » Sun Sep 11, 2011 1:20 pm

it looks like in version 1.0.11.1 this bug doesn't exist anymore
Please download library again. I just uploaded.
tamer
Posts: 7
Joined: Mon Aug 22, 2011 8:31 am

Re: Delivery Status Problem

Post by tamer » Mon Sep 12, 2011 9:40 am

It works fine now but the client no more receives sub and dlrvd in the delivery Receipt
Whether I am using custom values or let the default values it appears blank to the client
I attached a snapshot of the delivery and you can compare it to the one I sent before
Capture.PNG
Capture.PNG (2.93 KiB) Viewed 24125 times
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Delivery Status Problem

Post by alt » Tue Sep 13, 2011 12:27 pm

could you try with code

Code: Select all

dsm.Receipt.Submitted =1;
dsm.Receipt.Delivered =1;
tamer
Posts: 7
Joined: Mon Aug 22, 2011 8:31 am

Re: Delivery Status Problem

Post by tamer » Tue Sep 13, 2011 1:27 pm

I did add the code as u mentioned and this was the result
dlr.PNG
dlr.PNG (1.92 KiB) Viewed 24112 times
the standard smpp protocol says that the size of sub and delvrd is 3 octets while it is here one only
the format of this delivery is very important for our clients, please review this issue
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Delivery Status Problem

Post by alt » Wed Sep 14, 2011 12:24 pm

i see, i'm in journey now and can fix it after September 18.
You can try to use NameValueCollection that contains all strings
dsm.Receipt.Items["sub"]="001";
I'm writing this message from smartphone.
tamer
Posts: 7
Joined: Mon Aug 22, 2011 8:31 am

Re: Delivery Status Problem

Post by tamer » Wed Sep 14, 2011 3:05 pm

Thx, it worked.
this is the code i used.

Code: Select all

                            dsm.Receipt.Items["sub"]="001";
                            dsm.Receipt.Items["dlvrd"]="001";
plz mail me when u return or make a new version.
have a nice time.
Locked