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();
}
}
put message in inbox
Re: put message in inbox
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 });
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 });
Re: put message in inbox
thank you but i can't undrestand what you write
can you write a full example for send one sms ?
thank you
can you write a full example for send one sms ?
thank you