8591 SMS Gateway - Database user, PostgreSQL

                

Search the manual:

Overview Quick start Download Manual How to buy FAQ Contact Us
OZEKI NG SMS Gateway - Product Guide

Sybase SQL Anywhere Contents | SearchPervasive SQL

Home > Product Manual > Installation Guide > Users and applications > Database user > PostgreSQL

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
  Database user
  MSSQL
  MySQL
  Oracle
  Sybase SQL Anywhere
  PostgreSQL
  Pervasive SQL
  Date Format Strings
  Scheduled SMS
  SQL templates
  Informix
  Access
  Video
  Connection string builder
  Keywords
  Batch processing
  SQL statements
  Polling technology
  Dynamic Keywords
  Dynamic SMPP parameters
  AutoreplyDatabase user
  Autoreply user
  AutoReplyEasy user
  File user
  E-mail user
  HTTP Client user
  Colour SMS user
  Appstarter user
  SMS Voting
  Outlook Mobile Service
  FTP user
  PDF user
  WCF Client User
  Forwarder user
  Linux
  User Guide
  Developers Guide
  Examples and Solutions
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
 

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.


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

Webphone solutions:
- Adobe Flash video phone
- Silverlight video phone
- Web to web calls
- Web to VoIP calls

Custom SIP clients:
- Silverlight SIP VoIP client
- Flash SIP VoIP client
- C# .net SIP VoIP client
- ASP .net SIP VoIP client
- Web based SIP VoIP client

Custom VoIP solutions:
- VoIP SIP softphones
- VoIP call center clients
- VoIP IVR systems
- VoIP predictive dialer systems
- VoIP auto dialer systems
- VoIP call assistant
- VoIP call recording systems
- VoIP intercom solutions

Send SMS messages from PostgreSQL User


In this chapter you can learn how to send and receive messages using a PostgreSQL database with the Ozeki NG - SMS Gateway software. You will be provided with the connection string for the PostgreSQL database, instructions on the ODBC driver installation, with a link to a PostgreSQL database driver download page, and the create table script.

Ozeki NG - SMS Gateway allows you to send and receive SMS messages using a database server with the help of SQL queries. The software supports, among others, the PostgreSQL database.

For SMS messaging with a PostgreSQL database you need to install and appropriately configure a database user in the Ozeki NG - SMS Gateway program. Also, you need a PostgreSQL database server, in which you have to create an ozekimessageout and an ozekimessagein table for outgoing and incoming messages.

You can install and configure a PostgreSQL user on the graphical user interface of the software. The installation and configuration of a PostgreSQL user is similar to that of any other database user.

To find out how to install and configure a database user, check out the Database User page.

As the PostgreSQL database requires Open DataBase Connectivity (ODBC), select Odbc in the Connection string type dropdown menu (Figure 1).

Replace the default database connection string with the one for the PostgreSQL database in the Connection string template (Figure 1):

DRIVER={PostgreSQL};SERVER=YourServerIP;port=5432;DATABASE= YourDatabaseName;UID=YourUsername;PWD=YourPassword

Modify the variables in the connection string according to your needs.


Figure 1 - Specifying the connection string for the MySQL database

ODBC Driver Installation

As mentioned above, for using a PostgreSQL database you need Open DataBase Connectivity between your database server and Ozeki NG - SMS Gateway.

For this connectivity, you need to set up an ODBC driver. The PostgreSQL driver is called psqlODBC.

Installation of the psqlODBC driver

Download the psqlODBC database driver from the Internet. You can use the following link:

http://pgfoundry.org/projects/psqlodbc/

Install the downloaded psqlODBC database driver by launching the downloaded exe file. The installation is similar to that of any Windows application. To move from one dialog box to the next, just click the Next and the OK button during the setup.

You can create the ozeki message tables in Postgre SQL using the following script.

Postgre SQL create table script:

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

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

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.

It is strongly recommended to maintain an index in the database for the 'id' field of the outgoing SMS table to support SQL updates. Postgre SQL creates index fields by default.

Dig deeper!
People who read this also read...





Next page: Pervasive SQL

Copyright © 2000 - 2013 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


0