Home
RECOMMENDED FOR YOU:
SMS Gateway software
Ozeki brings you outstanding
SMS Gateway technology. Use our SMS Server products on Windows,Linux, or Android

C# SMS API
Developers can use our C# SMS API to send SMS from C#.Net. The C# SMS API comes with full source code

PHP SMS API
The ozeki PHP SMS gateway software can be used to send SMS from PHP and to receive SMS usig PHP on your website

SMPP SMS Gateway
SMS service providers use our SMPP gateway solution, that offers a high performance SMPP server and SMPP client gateway with amazing routing capabilities
Ozeki NG SMS Gateway

SQL Templates for SQL logging in Ozeki NG SMS Gateway

The following SQL commands are used to log incoming and outgoing messages into the database. If you are experiencing problems with SQL logging, please check if the following templates are specified in the server preferences form:



Template used for incoming messages to save them into the SMS inbox table:
INSERT INTO inbox (username,msgtype,msgid,sender,receiver,msgsubject,msgdata,senttime,receivedtime,operator) 
VALUES ('$username','$msgtype','$msgid','$sender','$receiver','$msgsubject','$msgdata','$senttime','$receivedtime','$operator')


Template used to insert a record into the SMS outbox table for messages accepted to be sent:
 
INSERT INTO outbox (username,msgtype,msgid,sender,receiver,msgsubject,msgdata,acceptedfordeliverytime,operator,status) 
VALUES ('$username','$msgtype','$msgid','$sender','$receiver','$msgsubject','$msgdata','$acceptedfordeliverytime','$operator','accepted')


Template used to update the SMS outbox table when a message was delivered to the network.
UPDATE outbox SET deliveredtonetworktime='$deliveredtonetworktime', callbackid='$callbackid', 
status='deliveredtonetwork',  cost='$cost' where msgid='$msgid'

Template used to update the SMS outbox table when a message was delivered to the handset.
UPDATE outbox SET deliveredtohandsettime='$deliveredtohandsettime', status='deliveredtohandset' where msgid='$msgid' 


Template used to update the SMS outbox table when a message delivery failed.
UPDATE outbox SET errormessage='$errormessage', status='deliveryfailed' where msgid='$msgid'

More information