Dear alt,
Can you tell me how to response custom message ID without using SMS.ForDeliver method? Now I am using SMS.ForDeliver method to response a client the message ID.
Plz help me ASAP. Thanks a lot.
SMPP Server response custom message ID
Re: SMPP Server response custom message ID
Do you want to send SubmitSmResp or delivery receipt?
Re: SMPP Server response custom message ID
Dear Alt,
I send you a mail to let you understand my request. Please check and support me. Thanks
I send you a mail to let you understand my request. Please check and support me. Thanks
Re: SMPP Server response custom message ID
In this picture below, I want to response in step 2 (2. Response Message ID) without send Delivery Report. Currently, I create SMPP Server with Delivery Report method like your example (below). When I used this method, my partner can't not receive the second DR (6. send delivery report) and I have read some open source, they always have a event submitsm_response. Can you advise me this event in Inetlab? Thanks a lot.

Example Coding:
client.DeliverAsync(
SMS.ForDeliver()
.From(message.SourceAddr, message.SourceAddrTon, message.SourceAddrNpi)
.To(message.DestAddr, message.DestAddrTon, message.DestAddrNpi)
.Receipt(new Receipt
{
DoneDate = DateTime.Now,
State = MessageState.Delivered,
MessageId = message.MessageId,
ErrorCode = "0",
SubmitDate = message.SubmitDate,
Text = message.Text
})
);

Example Coding:
client.DeliverAsync(
SMS.ForDeliver()
.From(message.SourceAddr, message.SourceAddrTon, message.SourceAddrNpi)
.To(message.DestAddr, message.DestAddrTon, message.DestAddrNpi)
.Receipt(new Receipt
{
DoneDate = DateTime.Now,
State = MessageState.Delivered,
MessageId = message.MessageId,
ErrorCode = "0",
SubmitDate = message.SubmitDate,
Text = message.Text
})
);
Re: SMPP Server response custom message ID
It is only an example in SmppServerDemo that shows how you can send delivery receipt. In real smpp gateway you need to send it later when you get one from SMSC.
In this demo application in the method
You can find the comment that describes how you can specify you own MessageId in SubmitSmResp.
Also here you can modify any property of the response.
SubmitSmResp will be sent right after this method (evSubmitSm event handler)
In this demo application in the method
Code: Select all
private void server_evClientSubmitSm(object sender, SmppServerClient client, Inetlab.SMPP.PDU.SubmitSm data)
Code: Select all
// You can set your own MessageId
data.Response.MessageId = "11";
SubmitSmResp will be sent right after this method (evSubmitSm event handler)