69e2 SMS Gateway - Configuration, SQL logging

                

Search the manual:

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

Outbound routing Contents | SearchMySQL table layout

Home > Product Manual > User Guide > Configuration > SQL logging

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Quick Start Guide
  User Interface
  Configuration
  Inbound Routing
  Outbound routing
  SQL logging
  MySQL table layout
  Oracle table layout
  SQL templates
  SQL log tracking
  Keywords
  Advanced traffic queries
  Source routing
  Sender address
  Content manipulation
  Charset handling
  Client software
  Administrator's 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

Configuration


Video tutorial: Setup SQL logging with MySQL (Part 1/3)
Video tutorial: Setup SQL logging with MySQL (Part 2/3)
Video tutorial: Setup SQL logging with MySQL (Part 3/3)

Ozeki NG allows you to maintain a log of every incoming and outgoing SMS in a database. This option can be useful if you want to use SQL queries to produce various reports. SQL logging can be configured with any database server the has an ODBC or OleDb driver. For example you can use MSSQL, Oracle, Access, MySQL, Postgres, etc... to store SMS traffic information.

The SQL logging option allows you to specify the database connection string and the SQL statements used to store the traffic information. The SQL statements are SQL templates that hold keywords that are replaced to the appropriate content, prior to the execution of the SQL command.

To enable SQL logging you should open the Server preferences form from the Edit menu. In the server preferences form click on Databases tab, then select Logging database settings (Figure 1). On this form check the Enable SQL reporting checkbox.


Figure 1. - Enable SQL logging

After SQL logging is enabled, you must make sure the database connection string allows you to connect to your database server. For example if you use Microsoft SQL Server to log incoming and outgoing messages, you would use the following connection string:

Microsoft SQL Server connection string
Provider=SQLNCLI;Server=YourServer;Database=YourDatabase;UID=YourUsername;PWD=YourPassword;

In your database server you must have two database tables created: inbox and outbox for storing the traffic information. The table layout for the inbox and outbox database tables are:

Microsoft SQL Server create table layout
CREATE TABLE  outbox (
id int IDENTITY(1,1),
username varchar(30),
msgtype varchar(160),
msgid varchar(60),
callbackid varchar(255),
sender varchar(30),
receiver varchar(30),
msgsubject varchar(1024),
msgdata text,
acceptedfordeliverytime datetime,
deliveredtonetworktime datetime,
deliveredtohandsettime datetime,
operator varchar(30),
route varchar(30),
status varchar(130),
errormessage varchar(1024),
cost varchar(10)
);


CREATE TABLE  inbox (
id int IDENTITY(1,1),
username varchar(30),
msgtype varchar(160),
msgid varchar(60),
sender varchar(30),
receiver varchar(30),
msgsubject varchar(1024),
msgdata text,
senttime datetime,
receivedtime datetime,
operator varchar(30)
);


The SMS gateway will use the SQL Commands configured on the server preferences form to update these tables.

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






Next page: MySQL table layout
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