ASP Script setup

This guide gives you instructions on how to setup an ASP script to process incoming messages. This script will be executed every time an SMS arrives to your system. The script will get the details (sender phone number, message text, etc...) of the incoming SMS and it can process it. The script can optionally return one or more response SMS messages.

In out example the ASP script will process incoming SMS messages and will save data into the database. The script will be executed by Ozeki NG SMS Gateway whenever a new SMS comes in. To configure Ozeki NG SMS Gateway to execute this script you need to add an "ASP User" to the Ozeki NG configuration. This can be done by clicking on the "Add" menu item in the "Users and applications" menu, then you should click on "install" at the "ASP" section (Figure 1).

how to add an asp sms script to the ozeki ng sms gateway
Figure 1 - How to add an ASP SMS script to the SMS gateway

After the "ASP" application installation is started, you have to supply a name for the application. You can pick any name. In the example we use "ASPDemo" (Figure 2).

how to set the asp sms application name
Figure 2 - How to set the ASP SMS application name

Once the "ASP User" has been installed, you can edit the ASP script to implement the application logic, that will process the incoming SMS message, work with the database and create the response. The ASP script that should be edited can be found at

C:\Program Files\Ozeki\OzekiNG - SMS Gateway\config\ASPDemo\sample.aspx

You can edit this script with notepad or any other text editor. If you have used a different name, when you have installed the "ASP User", the script location will be different.

More information