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

Birthday greeting - Oracle Contents | SearchAlphabet letter game

Home > Product Manual > Examples and Solutions > Instant brochure - MMS autoreply

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  Examples and Solutions
  Telephone networks
  SMS Pin game
  E-mail to SMS alert
  2 way SMS to Email gateway
  SMS Order System
  Least Cost Routing
  SMS Load Balancing
  Asterisk PBX SMS
  SQL SMS Gateway
  SMS Service Provider
  Service Provider
  SMS PIN code query
  SMS Counter game
  SMS newsgroup
  Distributed SMS
  SMS Menu
  Google maps
  Forwarding
  Birthday greeting - SQL Express
  Birthday greeting - MySQL
  Birthday greeting - Oracle
  Instant brochure - MMS autoreply
  Alphabet letter game
  SMS sport betting service
  E-mail about outgoing SMS messages
  SMS Information Menu
  Email to SMS feature
  Reminder example
  Bulk SMS Client
  Bulk SMS to a given phone number range
  Filtering phone numbers
  Ozeki Phone Sytem PBX SMS
  Autoreply voucher example
  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.

Automatic MMS response from database

Video tutorial: Automatic MMS response from database (Part 1/3)
Video tutorial: Automatic MMS response from database (Part 2/3)
Video tutorial: Automatic MMS response from database (Part 3/3)

This guide gives you information on how to send MMS replies to incoming SMS messages automatically. The solution presented can be used to send a brochure containing pictures to a cellphone if a keyword is received from it in an SMS message. In this solution the MMS response is stored in a MySQL database and the MMS picture attachments are stored in the file system.

Introduction

To setup a service, where you receive SMS messages and you send MMS responses you need two connections to the mobile network. One connection will be used to receive the SMS messages, the other will be used to send the MMS reply back. The SMS Connection can use an IP SMS service provider through the SMPP protocol. The MMS connection can use the MM7 protocol to send MMS messages over the Internet to an MMS service provider. The automatic response can be generated by the Autoreply database option of Ozeki NG SMS Gateway (Figure 1).


Figure 1 - System architecture

Database structure

To setup this solution, we recommend you to install a MySQL database server and a MyODBC database driver. To connect to the MySQL databse server, you need to configure the following connection string in the "Autoreply database" user of Ozeki NG SMS Gateway:

Connection type: ODBC
Connection string:
Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;
Database=ozekisms;User=root;Password=qwe123;Option=4;


In the MySQL database server you should create a database for this example called ozekisms, and you should define the following database tables

CREATE DATABASE ozekisms;

USE ozekisms;


CREATE TABLE keywordresponse (
        messagetype varchar(10),
        messagetext varchar (600),
        keyword varchar (30)
);

After the database table has been created, please insert a test record into it using the following SQL command:

INSERT INTO keywordresponse (messagetype, messagetext, keyword)
VALUES ('MMS:XML',
'<MMS>
  <subject>Deart customer!</subject>
  <messagetext>This color is the perfect choice for you if you
        want to get in the center of attention!</messagetext>
  <deliveryreport>on</deliveryreport>
  <readreport>on</readreport>
  <priority>high</priority>
  <messageclass>personal</messageclass>
  <attachments>
      <attachment>
         <filename>c:\tmp\pink.gif</filename>
      </attachment>
      <attachment>
         <filename>c:\tmp\pink.mp3</filename>
      </attachment>
  </attachments>
</MMS>',
'PINK-SHOES');


Autoreply database script

After the database has been setup, you need to create the Autoreply database script. You should include the following SQL query in this script:

SELECT '$sender', messagetext, messagetype FROM keywordresponse WHERE keyword='$keyword'


Note that this query includes a messagetype column.

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





Next page: Alphabet letter game
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