put message in inbox

.NET library for SMPP protocol
Locked
fireoff
Posts: 3
Joined: Mon Jul 01, 2013 10:30 am

put message in inbox

Post by fireoff » Mon Jul 01, 2013 10:49 am

hi

when i send a message with smpp my message show automatic in mobile but i want showing message in inbox

how i can do it ?

my code is this :

Inetlab.SMPP.SmppClient client = new Inetlab.SMPP.SmppClient();
client.Connect("x", x);
if (client.Status == Inetlab.SMPP.Common.ConnectionStatus.Open)
{
client.Bind("x", "x", Inetlab.SMPP.Common.ConnectionMode.Transmitter);
if (client.Status == Inetlab.SMPP.Common.ConnectionStatus.Bound)
{
List<SubmitSmResp> respList = client.SubmitText(Inetlab.SMPP.Common.SubmitMode.ShortMessage, 0, 0, "300...", 0, 0, "091...", "test");
if (respList.Count > 0 && respList[0].Status == Inetlab.SMPP.Common.CommandStatus.ESME_ROK)
{
Console.WriteLine("SMS has been sent");
foreach (SubmitSmResp resp in respList)
{
Console.WriteLine("MessageId: "+ resp.MessageId);
}
}
client.UnBind();
}
client.Disconnect();
}
}
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: put message in inbox

Post by alt » Mon Jul 01, 2013 3:29 pm

Hi fireoff,

I think its vendor specific solution. Probably you need to send message to one of the application port.

submitSm.UserDataPdu.Headers.Add(
InformationElementIdentifiers.ApplicationPortAddressingScheme16bit,
new byte[] { /* destination port 5000 */ 0x13, 0x88, /* originator port*/ 0, 0 });

// or using TLV parameter

submitSm.Optional.Add(OptionalTags.DestinationPort, new byte[] { 0x13, 0x88 });
fireoff
Posts: 3
Joined: Mon Jul 01, 2013 10:30 am

Re: put message in inbox

Post by fireoff » Tue Jul 02, 2013 5:55 am

thank you but i can't undrestand what you write

can you write a full example for send one sms ?

thank you
Locked