Call this function to logout from the SMS Gateway. This function
frees resources in the server, so it is recommended to use it. (Note:
if you do not call this function the server will free resources after
a period of inactivity)
You can use this function to post an SMS to the SMS Gateway. The
gateway will return a message id, and later it will notify you application
about when the message was delivered to the network and when the message
was delivered to the handset. You can use this function to post text messages
or binary messages, such as WAP Push, Oplogos, Ringtones, etc.
This event is invoked by the SMS Gateway when the SMS message was
delivered to the recipient handset. This event can happen later then
the onMessageDeliveredToNetwork event, because it is possible that
the destination mobile handset is out of network coverage or is
switched off for some time.
This event is invoked by the SMS Gateway if the message cannot
be delivered. This can happen if the mobile network operator
does not accept the message for example because the destination
number is invalid, or there is not enough money in the account. This
event is also invoked if the mobile network operator has accepted the message
for delivery but the destination handset was never switched on so
delivery became impossible.