Examples > Web to SMS (Http to SMPP)
This example demonstrates how to implement a "Web to SMS" scenario,
the scenario below will make it possible to send the message
information to GnGSmS via HTTP, then GnGSmS will forward the message
to the SMSC via SMPP.
-
Preparing the Web server:
We need to create a new HTTP server:

Note: You can
rename the HTTP parameters like you
want but this will reflected on the url you will use for sending
messages
-
Preparing the SMPP binder
Create a new SMPP binder and configure it
according to your SMSC

To send messages through this binder you need an SMPP gateway:

-
The Forward Action

Simply we will use the from/to/text information we received
through the web server to send a message through our SMPP
gateway
Note: the expression ${SERVICE} = 'WebServer' means this
action will only be executed for messages recieved through the
http server named 'WebServer', this is useful in case you have
more scenarios implemented on you GnGSmS server
-
Test
Start the servers your created in (1) and (2):
Test using a browser to send a new message from the web

Notice that the http parameters used here are the ones
configured in (1).
You can also create a form based on the
parameters configured in (1)