SMS sender block in Drupal provided by Ozeki SMS Module
This page demonstrates how you can implement
SMS functionality into Drupal web sites with the help of
Ozeki NG SMS Gateway. You need
to download and install Ozeki SMS module (it is available below this page).
After the installation of this module you can launch SMS services in an SMS
sender block format on your web site. In practice it means that an SMS sender
block appears on Drupal site and users can send SMS messages from it. To
configure your SMS gateway seamless please follow the instructions and watch
the video tutorials about the configuration steps.
Prerequisites
In order to setup this solution you need to find a way
to connect your system to the mobile network. You can do this
by using an Internet connection or you can
setup a wireless connection by attaching a GSM phone/GSM modem to your
computer. To help you make a
decision, we have prepared a webpage for you:
Internet based SMS connections vs. GSM modem based (wireless) SMS
connections.
Depending
on what you select, you need the following prerequisites.
Prerequisites for Internet based connection to
the Mobile network
If you wish to connect your system to an SMS service
provider over the Internet you need the following components:
Figure 1/a - Prerequisites for Ozeki NG SMS
Gateway IP SMS connection
In this case you need to find an SMS service
provider who can reach the mobile phones in your area. This SMS
service provider should be able to provide SMS service through
the Internet. To find such a provider, you can check our
website where we list some of them:
SMPP SMS Service providers.
Once you have found such a provider, you need to sign up for
their service to get the connection parameters. You can use these
parameters
to configure your Ozeki NG SMS Gateway software.
Prerequisites for wireless (GSM modem) connection
to the Mobile network
If you wish to connect your system to the mobile
network wirelessly, you need a GSM modem or GSM phone, that you
can attach to your computer with a data cable. In this case your Ozeki
NG SMS Gateway software will operate this phone and will send and receive
SMS messages wirelessly. To setup this connection method, you need the
following components:
Figure 1/b - Prerequisites for Ozeki NG SMS
Gateway GSM modem connection
Your checklist (for GSM modem connection):
*The SIM card will come with a plan, that will
determine how much money you will spend on each SMS.
System architecture
If you have all the requirements to operate Ozeki NG SMS
Gateway then you can start the configuration to add SMS functionality to your
Drupal web site. First you need to download and install Ozeki SMS module. This
module will ensure SMS functionality to your web site which means that users
will be able to send SMS messages from Drupal sites. After the installation an
SMS sender block will appear, you can specify its exact place during the
configuration. In this block users need to provide a recipient phone number
and compose a message. They can send the message by clicking on "Send message"
button. Ozeki NG SMS Gateway will forward messages to the mobile network
either with GSM modem connection
or with IP SMS connection (Figure 2). Please
read the configuration guide below to find the respective steps of the
configuration separately.

Figure 2 - SMS sender block in Drupal based on Ozeki NG SMS Gateway
Configuration steps
To implement SMS functionality into Drupal web sites please
follow the steps of this guide and watch the video tutorial:
First you need to download and extract
ozekisms.zip. In our example I
extracted it to the desktop (Figure 3).

Figure 3 - Ozeki SMS module on the desktop
Right click on the downloaded module and select "Copy" option
(Figure 4).

Figure 4 - Copy the module
Paste the module into the modules folder of Drupal. The
relative path to Drupal should be \sites\default\modules (Figure 5).

Figure 5 - Paste module
Start your browser and open your Drupal site (Figure 6).

Figure 6 - Open your Drupal site
Log into Drupal site with your username and password
(Figure 7).

Figure 7 - Log into Drupal
Click on "Administer" menu and select "Modules" menu item
(Figure 8).

Figure 8 - Click on "Modules"
Enable Ozeki SMS Module and click on "Save configuration"
(Figure 9).

Figure 9 - Enable Ozeki SMS Module
Now go to "Site configuration" in the menu and click on
"Ozeki SMS Module settings" (Figure 10).

Figure 10 - Ozeki SMS Module settings
Here provide the following values:
IP address: it is the IP address of the computer where Ozeki NG SMS Gateway
has been installed
HTTP Port Number: is the port of the built-in HTTP server of the gateway
Username and password: the username and password you use to log into Ozeki
NG SMS Gateway
HTTP GET string: this will be queried through HTTP
(If you leave the default settings unchanged (even you leave the default username:
"admin" and password: "abc123") and Ozeki NG SMS Gateway has been installed to
the same computer as Drupal, then this module also will work properly.)
This HTTP GET string can be used with any other SMS gateway that has a built-in
HTTP server.
Finally click on "Save configuration" (Figure 11).

Figure 11 - Provide values
Click on "Site building" and then on "Blocks" (Figure 12).

Figure 12 - Click on "Blocks"
Now grab "Block to send an SMS" and place it into one of the
block where you wish it to appear. In our example it is placed into
the right sidebar (Figure 13).

Figure 13 - Place the module where you want it to appear
As you can see on Figure 14 the block appears in the right
sidebar. I enter the recipient phone number, compose a message and click on
"Send message" to test the system (Figure 14).

Figure 14 - Fill the form
In Ozeki NG SMS Gateway you can see that the message has been
sent out to the recipient (Figure 15).

Figure 15 - Sent message in Ozeki NG SMS Gateway
Thank you for reading this guide. If you still have further
questions please contact us at
info @ ozekisms.com
Related pages:
Further readings:
|