Send SMS messages and receive SMS messages using Informix

On this page you can find the database configuration you should apply for Informix to be able to send SMS messages and receive SMS messages by inserting and reading data from database tables.

To connect to Informix, please configure the following database connection string in the database user configuration form:

Provider=Ifxoledbc.2;password=pppppp;User ID=uuuuuu;Data Source=opcrts@alpha;Persist Security Info=true

Here is a quick overview of how this solution is going to work: First you create two database tables: ozekimessageout and ozekimessagein in Informix. Then you install and configure Ozeki NG SMS Gateway, to connect to Informix and to use these database tables for sending and receiving messages. Once you have the configuration completed, you can send an SMS message by using an SQL INSERT statement to create a record in the ozekimessageout database table. Ozeki NG will read this record using an SQL SELECT and will send your SMS message using a GSM modem attached to the PC or using an IP SMS connection.

To create your database tables in Informix you can use the following create table script:

CREATE TABLE ozekimessagein (
 id serial,
 sender varchar(255),
 receiver varchar(255),
 msg varchar(160),
 senttime varchar(100),
 receivedtime varchar(100),
 operator varchar(30),
 msgtype varchar(30),
 reference varchar(30),
);

CREATE TABLE ozekimessageout (
 id serial,
 sender varchar(255),
 receiver varchar(255),
 msg varchar(160),
 senttime varchar(100),
 receivedtime varchar(100),
 operator varchar(100),
 msgtype varchar(30),
 reference varchar(30),
 status varchar(30),
 errormsg varchar(250)
);

Figure 1 - SQL Create table script for Informix

If you want to work with larger messages, you can increase the size of the msg field, or you may also change it's data type.

More information