7269 SMS Gateway - AutoreplyDatabase user, Create database layout

                

Search the manual:

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

Installation guide Contents | SearchSample script file

Home > Product Manual > Installation Guide > Users and applications > AutoreplyDatabase user > Create database layout

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
  AutoreplyDatabase user
  Installation guide
  Create database layout
  Sample script file
  Script file structure
  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

Create database layout for SMS autoresponses


In this guide we create an example database layout for an autoresponding SMS application that uses data stored in an SQL database. We use the Microsoft SQL Express database server that can be downloaded from the Microsoft website.

Step 1. - Download and install Microsoft SQL Express.

You can download the Microsoft SQL Express Database Server from the following location:

Download details: Microsoft SQL Server 2005 Express Edition

Step 2 - Create your database tables in Microsoft SQL Express

You can create a database and the appropriate database tables by opening a windows command prompt (Start->Run->cmd.exe), and starting the SQL Command interpreter by typing:

C:\sqlcmd -S .\SQLExpress

Once the SQL command interpreter is running, you should enter the following commands


create database ozeki
GO

use ozeki
GO

CREATE TABLE autoreplymessage (
 id int IDENTITY (1,1),
 keyword varchar(30),
 msg varchar(160),
);
GO

sp_addLogin 'ozekiuser', 'ozekipass'
GO

sp_addsrvrolemember 'ozekiuser', 'sysadmin'
GO

Figure 1 - SQL Create table script

Step 3 - Put some data into your keyboard database

To be able to create a response automatically for certain keywords we must fill the autoreplymessage database table:

insert into autoreplymessage (keyword,msg) values ("default","There is no data for this keyword.");
insert into autoreplymessage (keyword,msg) values ("red","Red is a good color.");
insert into autoreplymessage (keyword,msg) values ("blue","Blue is not the best option.");
GO


Step 4 - Make Microsoft SQL Express ready to accept your username and password

Unless you have mixed mode authentication configured in SQL express, you will not be able to connect to your database from Ozeki NG because Ozeki NG runs as a system service in the background. To enable mixed - mode authentication, you should open the registry editor (Start->run->regedit.exe) and in the Registry you should change the LoginMode value from 1 to "2", here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer

LoginMode =2

After this change you might have to restart the SQL Express to make sure the changes take effect.

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





Next page: Sample script file
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