If you are working on telephone solutions, please check
out the Ozeki VoIP SIP SDK.|
It can be used to create VoIP client and server software.
C# SMS API - onMessageDeliveredToNetwork
This event is invoked by the SMS Gateway when the
SMS is accepted by the network for delivery. If you have a slow
service provider connection (for example you use a GSM Modem)
and you are sending a lot of messages Ozeki NG will put the messages
into a message queue called outbox until there is capacity available
for sending. As soon as service provider capacity becomes available
the message is sent and the onMessageDelivedToNetwork event is invoked
To handle this event, the following delegate type is used:
public delegate void DeliveryEventHandler(string messageID, DateTime
And the following event is accessed:
public event DeliveryEventHandler onMessageDeliveredToNetwork;
string messageID, DateTime deliveryTime);
Create a function with this header and attach it to the
onMessageDelivedToNetwork event to receive notifications
about message delivery events.
messageID - The message
id that was returned by the SMS Gateway when you have posted
the message for sending using the
deliveryTime - The
timestamp that marks the occurence of the event
Step 1. - Create the event handling function:
void myDeliveredToNetworkHandler(string messageID, DateTime
console.writeln("The message is delivered");
Step 2. - Attach this event to the SMSClient object:
mySMSClient.onMessageDeliveredToNetwork += ServerEventSink.wrap(myDeliveredToNetworkHandler);
Hint: Notice the ServerEventSink.wrap method, that is used to attach the event.
This wrapper is used to work around an error that can happen when
asynchronous callbacks are invoked in .NET remoting.
People who read this also read...
SMS delivery report