7464 SMS Gateway - SMS API functions, SMS delivery report

                

Search the manual:

Overview Quick start Download Manual How to buy FAQ Contact Us
OZEKI NG SMS Gateway - Product Guide

SMS delivered to network Contents | SearchSMS delivery failed

Home > Product Manual > Developers Guide > C Sharp SMS API > SMS API functions > SMS delivery report

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  Tutorials
  ASP SMS API
  PHP SMS API
  HTTP SMS API
  SQL SMS API
  C Sharp SMS API
  SMS API functions
  login
  logout
  Send SMS message
  log
  keepalive
  SMS delivered to network
  SMS delivery report
  SMS delivery failed
  SMS received
  C sharp and MS SQL Server
  Registering remote objects
  C Sharp SMS Gateway
  AJAX SMS API
  Delphi SMS API
  Cpp SMS API
  Java SMS API
  VB.NET SMS API
  Python SMS API
  Perl SMS API
  TCL/TK SMS API
  Coldfusion SMS API
  VB 6 SMS API
  Examples and Solutions
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
 



Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.


Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create:

Webphone solutions:
- Adobe Flash video phone
- Silverlight video phone
- Web to web calls
- Web to VoIP calls

Custom SIP clients:
- Silverlight SIP VoIP client
- Flash SIP VoIP client
- C# .net SIP VoIP client
- ASP .net SIP VoIP client
- Web based SIP VoIP client

Custom VoIP solutions:
- VoIP SIP softphones
- VoIP call center clients
- VoIP IVR systems
- VoIP predictive dialer systems
- VoIP auto dialer systems
- VoIP call assistant
- VoIP call recording systems
- VoIP intercom solutions

C# SMS API - onMessageDeliveredToHandset


This event is invoked by the SMS Gateway when the SMS is received on the destination mobile phone. The SMS delivered to handset notification is sent from the network to the system in a separate SMS message. This event happens some time after the SMS delivered to network event occurs. The time depends on when the destination mobile phone becomes available. If the destination phone is never switched off it might never arrive.

To handle this event, the following delegate type is used:

public delegate void DeliveryEventHandler(string messageID, DateTime deliveryTime);

And the following event is accessed:

public event DeliveryEventHandler onMessageDeliveredToHandset;

     Name Description
void onMessageDeliveredToHandset( string messageID, DateTime deliveryTime); Create a function with this header and attach it to the onMessageDelivedToHandset event to receive notifications about message delivery to handset events.

Parameters

messageID - The message id that was returned by the SMS Gateway when you have posted the message for sending using the sendMessage method.

deliveryTime - The timestamp that is returned by the SMS service provider about the delivery

Example

Step 1. - Create the event handling function:

   void myDeliveredToHandsetHandler(string messageID, DateTime
   deliveryTime)
   {
     console.writeln("The message is delivered to the handset");
   };
   
Step 2. - Attach this event to the SMSClient object:

   mySMSClient.onMessageDeliveredToHandset += ServerEventSink.wrap(myDeliveredToHandsetHandler);
   
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.


Dig deeper!
People who read this also read...





Next page: SMS delivery failed
Copyright © 2000 - 2013 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com


0