With documentation I found 2 ways to do that: send delivery_sm or data_sm.
For example:
Code: Select all
var rec = Receipt.Create(Encoding.ASCII.GetBytes("Hello, this is test message"), Encoding.ASCII);
var deliver = new DeliverSm
{
Receipt = rec,
SourceAddrTon = (byte)Ton.Unknown,
SourceAddrNpi = (byte)Npi.ISDN,
SourceAddr = "994503312380",
DestAddrTon = (byte)Ton.Unknown,
DestAddrNpi = (byte)Npi.ISDN,
DestAddr = "8145",
RegisteredDelivery = (byte)SMSCDeliveryReceipt.NotRequested,
DataCoding = DataCodings.Default,
EsmClass = (byte)MessageTypes.Default
};
12:27:36: Received Data: 00-00-00-69-00-00-00-05-00-00-00-00-50-2C-2A-53-00-00-01-39-39-34-35-30-33-33-31-32-33-38-30-00-00-01-38-31-34-35-00-04-00-00-00-00-00-00-00-00-38-69-64-3A-20-73-75-62-3A-30-30-30-20-64-6C-76-72-64-3A-30-30-30-20-73-75-62-6D-69-74-20-64-61-74-65-3A-20-64-6F-6E-65-20-64-61-74-65-3A-20-73-74-61-74-3A-20-65-72-72-3A
12:27:36: DeliverSm received : Sequence : 1345071699 SourceAddr : 994503312380 Coding : Default MessageText : id: sub:000 dlvrd:000 submit date: done date: stat: err:
How can I send the correct message, out of "id", "sub" and others?