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).
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).
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
- How to connect SMS Gateway to the telephone network for voice calls
- Ozeki Phone Sytem PBX SMS
- Asterisk PBX SMS
- Prerequisites for Asterisk SMS
- Create Database for SMS sending
- SMS Pin game
- How to create an SQL Express database for SMS Pin game
- ASP User Script setup for SMS Pin game
- ASP Script for creating pin game
- Appendix
- Feature list of Ozeki NG SMS Gateway
- FAQ of the Ozeki NG SMS Gateway