Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozekisms.com
Tel.: +36 1 371 0150
SMS Gateway to send SMS via GSM modem or IP SMS connection Overview SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Quick start SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Download SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Manual SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection How to buy SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection FAQ SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Contact Us SMS Gateway to send SMS via GSM modem or IP SMS connection
OZEKI NG SMS Gateway - Product Guide

Polling technology Contents | SearchDynamic SMPP parameters

Home > Product Manual > Installation Guide > Users and applications > SMS from/to database > Dynamic Keywords

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  Prerequisites
  Download Information
  Installation Steps
  Service Provider Connections
  Users and applications
  Standard user
  SMPP user
  SMS from/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/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
  FAQ
  Feature list
  Commercial Information
  Search
  Cookie policy
 
Automated phone calls?
Ozeki Phone System XE VoIP PBX software is an advanced PBX built for automated voice calls and 2 way SMS messaging. It has outstanding APIs for software developers. It can be used for:

Phone calls from SQL
Phone calls from HTTP
Voice and SMS applications

Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create VoIP client and server software.

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

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: http://ozekisms.com/index.php?owpn=646.

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
)


Figure 1 - SQL command for creating dynamicvariables table

Create index on dynamicvariables and click Run (Figure 2):

CREATE index index_id3 ON dynamicvariables(id)


Figure 2 - Create index

Create sequence and click Run Figure 3):

CREATE SEQUENCE Z


Figure 3 - Create sequence

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


Figure 4 - Create trigger

Now I insert a test variable (AMOUNT) (Figure 5):

INSERT INTO dynamicvariables(varname, varvalue) VALUES ('AMOUNT','1560')


Figure 5 - Test variables

Now I insert a test variable (CURRENCY) (Figure 6):

INSERT INTO dynamicvariables(varname, varvalue) VALUES ('CURRENCY','')


Figure 6 - Test variable

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'


Figure 7 - Polling tab

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 8 - Test parameters

Figure 9 demonstrates a sent message in Ozeki NG SMS Gateway that has been sent with this configuration.


Figure 9 - Sent message

For more information please contact us at info@ozekisms.com.



Next page: Dynamic SMPP parameters
Copyright © 2000 - 2017 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com