Interfacing with the lib is fairly easy. if (comm.IsConnected())
{
DecodedShortMessage[] Messages = comm.ReadMessages(PhoneMessageStatus.ReceivedUnread, PhoneStorageType.Sim);
DecodedShortMessage[] PhMessages = comm.ReadMessages(PhoneMessageStatus.ReceivedUnread, PhoneStorageType.Phone);
foreach (DecodedShortMessage Message in Messages)
{
if (Message.Data is SmsDeliverPdu)
{
SmsDeliverPdu data = (SmsDeliverPdu)Message.Data;
SaveReceivedSMS(data.OriginatingAddress, data.SCTimestamp.ToString(), data.UserDataText);
comm.DeleteMessage(Message.Index, PhoneStorageType.Sim);
}
}
foreach (DecodedShortMessage Message in PhMessages)
{
if (Message.Data is SmsDeliverPdu)
{
SmsDeliverPdu data = (SmsDeliverPdu)Message.Data;
SaveReceivedSMS(data.OriginatingAddress, data.SCTimestamp.ToString(), data.UserDataText);
comm.DeleteMessage(Message.Index, PhoneStorageType.Phone);
}
}
}
Don't waste your time with code, use SMSTools3 . I have sent 20K MTs over the last couple of years with SMSTools and an off the shelf E272 modem (E220 are also awesome).
I use flat files, but you can also use db. Can get DLRs and MO's. I redirect MO's into a db as well.