- Product Manual
- Introduction
- Installation Guide
- Prerequisites
- SMS technology
- Download Information
- Installation Steps
- GSM Modem Setup
- Mobile Network Connections
- Users and applications
- Standard user
- SMPP user
- SMS from or to database
- MSSQL
- MySQL
- Oracle
- Sybase SQL Anywhere
- PostgreSQL
- Pervasive SQL
- Date Format Strings
- Scheduled SMS
- SQL templates
- Informix
- Access
- Video
- Connection string builder
- Keywords
- MS SQL high speed
- Oracle High Speed
- SQL statements
- Polling technology
- Dynamic Keywords
- Dynamic SMPP parameters
- Autoreply SMS from database
- Autoreply SMS using a script
- Simple autoreply SMS
- SMS from or to file
- SMS through E-mail
- SMS via HTTP Request
- SMS via colour protocol
- Application starter SMS
- SMS Voting
- SMS from MS Outlook
- SMS from/to FTP server
- PDF Request in SMS
- SMS to WCF service
- SMS Forwarder
- RSS to SMS
- Linux
- User Guide
- Developers Guide
- Examples and Solutions
- Appendix
- SMS FAQ
- Feature list
- Commercial Information
- Search
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
How to set dynamic keywords in Ozeki NG SMS Gateway
This page explains how you can set dynamic keywords in Ozeki NG SMS Gateway effectively. The example below uses Oracle 10g XE database for demonstration.
When you use Ozeki NG SMS Gateway you can set keywords in the SQL table to achieve various functions. For the list of the available keywords please check Keywords in the SQL templates page.
However, there is a possibility to define further keywords beside the above mentioned ones to get further functions. These dynamic keywords can be specified in your database (in this example in Oracle 10g XE database). After you specified your keywords, Ozeki NG SMS Gateway will poll the variable names and parameters from the database.
Since this example uses uses Oracle 10g XE database for demonstration, it is required that the Oracle database has been configured to Ozeki NG according to the following webpage: https://ozekisms.com/p_2646-how-to-send-sms-from-oracle-10g-xe.html.
Step by step guide
First you need to create the necessary database tables and structures. Insert the following SQL commands and click on Run:
Create table dynamicvariables and click Run (Figure 1):
CREATE TABLE dynamicvariables ( id int, varname varchar(30) default NULL, varvalue varchar(30) default NULL ) |
Create index on dynamicvariables and click Run (Figure 2):
CREATE index index_id3 ON dynamicvariables(id) |
Create sequence and click Run Figure 3):
CREATE SEQUENCE Z |
Create trigger and click Run (Figure 4):
CREATE TRIGGER dynamicvariables_auto BEFORE INSERT on dynamicvariables for each row when (new.id is null) begin SELECT z.nextval INTO :new.id FROM DUAL; end |
Now I insert a test variable (AMOUNT) (Figure 5):
INSERT INTO dynamicvariables(varname, varvalue) VALUES ('AMOUNT','1560') |
Now I insert a test variable (CURRENCY) (Figure 6):
INSERT INTO dynamicvariables(varname, varvalue) VALUES ('CURRENCY','€') |
Now start Ozeki NG SMS Gateway. Go to the configuration panel of the database user and click SQL for Sending tab (Figure 7). On Polling tab enter the following SQL statement for polling messages:
SELECT id,sender,receiver,replace(replace( msg, 'AMOUNT', (select varvalue from dynamicvariables where varname='AMOUNT')), 'CURRENCY', (select varvalue from dynamicvariables where varname='CURRENCY')),msgtype,operator FROM ozekimessageout WHERE status='send' |
Then insert a test parameter in the ozekimessageout table in Oracle (Figure 8):
INSERT INTO ozekimessageout (receiver,msg,status) VALUES ('+36205460691','test data from amount table: AMOUNT, and test data from currency table: CURRENCY','send'); |
Figure 9 demonstrates a sent message in Ozeki NG SMS Gateway that has been sent with this configuration.
More information
- Users and Applications
- SQL Create Table Scripts
- SQL statements
- User Interface
- Oracle User
- Oracle 10G XE
- MSSQL User
- MySQL User
- Sybase_SQLAnywhere User
- PostgreSQL User
- Date Format Strings
- Appendix D - Connection Strings
- Connections string builder
- FAQ