SubmitMultiMessage exception occured
Posted: Tue Dec 01, 2020 2:08 pm
Single message sent successfully . For multi message below exception is occured.
Unable to cast object of type 'Inetlab.SMPP.PDU.GenericNack' to type 'Inetlab.SMPP.PDU.SubmitMultiResp'. at await _client.SubmitAsync
List<IAddress> destList = new List<IAddress>();
destList.Add(new SmeAddress("1234567890", AddressTON.Unknown, AddressNPI.ISDN));
destList.Add(new SmeAddress("1234567890", AddressTON.Unknown, AddressNPI.ISDN));
IList<SubmitMultiResp> resp = await _client.SubmitAsync(SMS.ForSubmitMulti()
.ServiceType("")
.Text("Multi Message")
.From(sourceAddress)
.ToDestinations(destList)
);
Unable to cast object of type 'Inetlab.SMPP.PDU.GenericNack' to type 'Inetlab.SMPP.PDU.SubmitMultiResp'. at await _client.SubmitAsync
List<IAddress> destList = new List<IAddress>();
destList.Add(new SmeAddress("1234567890", AddressTON.Unknown, AddressNPI.ISDN));
destList.Add(new SmeAddress("1234567890", AddressTON.Unknown, AddressNPI.ISDN));
IList<SubmitMultiResp> resp = await _client.SubmitAsync(SMS.ForSubmitMulti()
.ServiceType("")
.Text("Multi Message")
.From(sourceAddress)
.ToDestinations(destList)
);