Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozekisms.com
Tel.: 00 36 52 532 731
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

Dynamic Keywords Contents | SearchAutoreply SMS from database

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

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.

Dynamic SMPP parameters from database

By using a database user, you are allowed to dynamically set source_addr_ton, source_addr_npi, dest_addr_ton, dest_addr_npi, esm_class and data_coding SMPP parameters dynamically by saving them into the appropriate database records. This guide explains how you can set SMPP parameters dynamically by using a database user - note that this feature is only available in Ozeki NG SMS Gateway 4.2.5 or above.

You can read about dynamic SMPP parameter settings here: Dynamic SMPP parameters

You can read about the database user here: Database users

Setting SMPP parameters from database

First, you need to create the database userís table for sending so it can contain values for SMPP parameters too. Have a look at the example below.

CREATE TABLE IF NOT EXISTS 'ozekimessageout' (
   'id' int(11) NOT NULL AUTO_INCREMENT,
   'sender' varchar(30) DEFAULT NULL,
   'receiver' varchar(30) DEFAULT NULL,
   'msg' text,
   'senttime' varchar(100) DEFAULT NULL,
   'receivedtime' varchar(100) DEFAULT NULL,
   'reference' varchar(100) DEFAULT NULL,
   'status' varchar(20) DEFAULT NULL,
   'msgtype' varchar(160) DEFAULT NULL,
   'operator' varchar(100) DEFAULT NULL,
   'errormsg' varchar(250) DEFAULT NULL,
   'source_addr_ton' int(3),
   'source_addr_npi` int(3),
   'dest_addr_ton' int(3),
   'dest_addr_npi' int(3),
   'esm_class' int(3),
   'data_coding' int(3)
   PRIMARY KEY ('id'),
   KEY 'id' ('id')
)

After preparing the database table, you need to update the SELECT statement in the database user's configuration - you need to add the appropriate field names to the SQL statement (Figure 1).


Figure 1 - Updating the SELECT statement for polling

After these steps, the database user can send messages with dynamically set SMPP parameter values. Note, that the database records must contain decimal values (or NULL, if you don't want to dynamically set SMPP parameters).

When sending a message, if the messageís record contains a value for an SMPP parameter, the message will be sent with that parameter value. If the record has a blank field for a parameter value then the SMPP service's configured value will be used (Figure 2).


Figure 2 - SMPP parameter settings

If you have left these fields blank, default values will be used.

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





Next page: Autoreply SMS from database
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