Detailed description of SQL statements
This page provides you detailed information on the various SQL statements of database user. Please browse through the screenshots to learn how and when the statements are executed during the SMS sending process.
Polling statement will be executed by default in every "10" seconds. The time of the execution can be set in "Check the ozekimessageout table every ... sec. for outgoing messages (Figure 1).
Figure 2 demonstrates that the database has been polled and there is no outgoing message in the database table.
If there are outgoing messages in the database, they will return with the polling statement and the database user updates record to "Sending" (Figure 3).
Sending statement is executed if Polling was successful and there is an outgoing message in the table (Figure 4).
Then messages are forwarded to the Service Provider in Ozeki NG SMS Gateway via outbound route (Figure 5).
If the Service Provider of Ozeki NG SMS Gateway forwards the message to the SMSC (SMS centre), the Service provider will return that "Message delivered to network". In this case the database user will update the record to "Sent" (Figure 6).
If the message has been sent from the Service provider in Ozeki NG SMS Gateway Sent statement is executed (Figure 7).
If the Service provider of Ozeki NG SMS Gateway cannot forward the message to the SMSC for some reason, the status of the message will be "Message not sent" in the SMS gateway. The database user then updates the record to "Not sent" (Figure 8).
If the message cannot be sent to the service provider in Ozeki NG SMS Gateway Not sent will be executed (Figure 9).
If the SMSC sends a delivery report containing "Message delivered to handset" the database user will update the record to "Delivered" (Figure 10).
If the delivery report contains "Message successfully delivered to handset", Delivered statement will be executed (Figure 11).
If the delivery has been failed the database user will update the record to "Undelivered" (Figure 12).
If the SMSC reports that the message cannot be delivered, Undelivered statement will be executed (Figure 13).
More information