sms gateway - database user, mysql

2

Click here to load reader

Upload: paul-maposa

Post on 08-Apr-2016

123 views

Category:

Documents


6 download

DESCRIPTION

SMS Gateways

TRANSCRIPT

Page 1: SMS Gateway - Database User, MySQL

2/19/13 SMS Gateway - Database user, MySQL

www.ozekisms.com/index.php?ow_page_number=168 1/2

Search the manual: Search

Overview Quick start Download Manual How to buy FAQ Contact Us

OZEKI NG SMS Gateway - Product Guide Contents | Search

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

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

MyODBCv5

Databaselayout

MyODBCdriverinstallation

Oracle

Sybase SQL

Anyw here

PostgreSQL

Pervasive SQL

Date Format

Strings

Scheduled SMS

SQL templates

Informix

Access

Video

Connection string

builder

Keyw ords

Batch processing

SQL statements

Polling technology

Dynamic

Keyw ords

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

Forw arder user

Linux

User Guide Developers Guide Examples and Solutions Appendix FAQ Feature list

Commercial Information Search

Contact Us!

If you wish to get furtherinformation, do not hesitate tocontact us!

E-mail: [email protected]

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

Callcenter developersIf you are working on telephonesolutions, please check out theOzeki VoIP SIP SDK.

SQL to SMS Gateway configuration - MySQL overview

| | TweetTweet |

Video tutorial: How to send and receive SMS from MySQL

In this chapter you can learn how to configure the SMS gateway to be able to send and receive SMSmessages using a MySQL database server. You will be provided with the installation steps, the configurationdetails such as the database connection string, database connection type, and with the recommendeddatabase table layout.

To be able to send and receive SMS from a MySQL database you will need to install the MyODBC driver to yourcomputer. This driver can be downloaded from the MySQL website. We recommended to use MyODBC v5.1,because it supports unicode characters.

After the MyODBC driver has been installed on the computer, you need to configure a database user in the SMSGateway.

During the configuration the database connection type, you should choose is:

Odbc

The database connection string you should use is:

Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;Database=ozekisms;User=ozeki;Password=abc123;Option=4;

Please note that the database connection string should be modified to match your database. You should replacethe "127.0.0.1" ip address to the hostname or ip address of your database server. Replace "ozekisms" to thename of you database. Replace "ozeki" and "abc123" to the username and password that can be used toconnect to your database server.

The connection string and the connection type should be entered on the Database user configuration form.

Figure 1 - Specifying the connection string for the MySQL database

After the database user has been configure in the SQL SMS gatway, the only thing left to do is to create thedatabase tables ozekimessageout and ozekimessagin in your MySQL database. We recommend you to use thefollowing table layout:

MySQL create table script:

Share ShareShare

Page 2: SMS Gateway - Database User, MySQL

2/19/13 SMS Gateway - Database user, MySQL

www.ozekisms.com/index.php?ow_page_number=168 2/2

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

CREATE TABLE ozekimessagein (id int(11) NOT NULL auto_increment,sender varchar(30) default NULL,receiver varchar(30) default NULL,msg text default NULL,senttime varchar(100) default NULL,receivedtime varchar(100) default NULL,operator varchar(100) default NULL,msgtype varchar(160) default NULL,reference varchar(100) default NULL,PRIMARY KEY (id)) charset=utf8; ALTER TABLE ozekimessagein ADD INDEX(id) ;

CREATE TABLE ozekimessageout (id int(11) NOT NULL auto_increment,sender varchar(30) default NULL,receiver varchar(30) default NULL,msg text default NULL,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,PRIMARY KEY (id)

) charset=utf8;ALTER TABLE ozekimessageout ADDINDEX (id);

It is strongly recommended to maintain an index in the database for the 'id' field of the outgoing SMS table tosupport faster SQL updates.

If you wish you can add additional columns or you can modify these database tables. If you do please review theSQL templates used by the SMS gateway to make sure they will be compatible with the customized databasetable layout.

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

Database UserMyODBC v5Database layoutMyODBC drivers installationFAQ

Next page: MyODBC v5

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 [email protected]