This example shows you how you can use Ozeki NG SMS Gateway to create
an SMS order system. This order system is a menu similar to the menu
used in voice telephone systems (IVR menu). It works very simply,
the mobile users sends in a message, then a system replies automatically.
The mobile user can select a menu item by sending in a number.
The original idea is presented at http://www.csebd.net/sms4buy.swf with the
following flash video:
The solution uses the built in ASP script execution engine of Ozeki NG, so the
setup requires you to install the ASP SMS user in the "Add user or application"
screen (Figure 1). This screen can be brough up by clicking on the "Add user"
menu item in the "Users and applications" menu.
Figure 1 - Install the ASP user
The next step is to assign a name for your service. For example you can specify
"salesmenu" as the service name (Figure 2).
Figure 2 - Provide a unique name for your service
When you click Ok, the service will be created. On the service configuration form
you need to disable the automatic response functionality by making sure the
three checkboxes on the configuration form are NOT checked (Figure 3 and 4).
Figure 3 - Disable the automatic response functionality on General tab
Figure 4 - Disable the automatic response functionality on Service period tab
After the checkboxes have been unchecked, click OK. The next step is to find
out the path of the ASP script that will be executed when an SMS comes in. To
get the location click on the script setup link in the left panel (Figure 5).
Figure 5 - Find the ASP script location
When you have the path, use notepad to open this script for editing (Figure 6).
Of course you may use any other text editor you like to modify the script.
Figure 6 - Use notepad to edit the script.
To create the SMS menu functionality copy the following source code into the
sample.asp script. After you have copied this code, you need to save sample.asp
and your service is ready to go.