Some time i getting message id and some time i am not

.NET library for SMPP protocol
Locked
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

Some time i getting message id and some time i am not

Post by robindas » Wed Jan 17, 2018 10:25 am

Hi,

some time i am getting proper response and some time message id as null

is it because of the trial version of dll

Code i am using


foreach (DataRow reader in dt.Rows)
{
DataCodings submitDataCoding = DataCodings.Default;
bool isunicode = bool.Parse(reader[4].ToString());
if (isunicode == true)
{
submitDataCoding = DataCodings.UCS2;
}

IList<SubmitSmResp> responses = client.Submit(
SMS.ForSubmit()
.Text(reader[3].ToString())
.From(reader[1].ToString())
.To("91" + reader[2].ToString())
.Coding(submitDataCoding)
.DeliveryReceipt()

);
if (responses != null)
{
if (responses.Count > 0)
{


lstSmppMessageIds.Add(new SMPPID { id = int.Parse(reader[0].ToString()), smppMessageid = responses[0].MessageId });



}
}

}


Please help
robindas
Posts: 8
Joined: Wed Jan 17, 2018 10:20 am

Re: Some time i getting message id and some time i am not

Post by robindas » Wed Jan 17, 2018 1:19 pm

This is closed i need to reconnect in case of lost connection
Locked