All Projects → badlee → scriptbox

badlee / scriptbox

Licence: other
Script box is a full VAS application for demonstrate kannel.js, shorty and smpp usage

Programming Languages

HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to scriptbox

mobizon-node
Biblioteca NodeJS para trabalhar com os serviços Mobizon API
Stars: ✭ 17 (-10.53%)
Mutual labels:  sms, gateway
guli-mall
尚硅谷-谷粒商城代码及文档https://www.yuque.com/zhangshuaiyin/guli-mall
Stars: ✭ 233 (+1126.32%)
Mutual labels:  sms, gateway
magento-2-sample-payment-method
Magento 2 Create Payment Method proves that store admin has rights to generate as many payment methods as they need when your store is based on Magento 2 platform, an great era of ecommerce architecture. Depending on the customer's requirement, you probably plug it in your list of the existing payment method. The additional payment methods surel…
Stars: ✭ 53 (+178.95%)
Mutual labels:  gateway
couper
Couper is a lightweight API gateway designed to support developers in building and operating API-driven Web projects
Stars: ✭ 60 (+215.79%)
Mutual labels:  gateway
apisix-java-plugin-runner
APISIX Plugin Runner in Java
Stars: ✭ 57 (+200%)
Mutual labels:  gateway
owt
Update Version 3.1 added free SMS messaging.
Stars: ✭ 339 (+1684.21%)
Mutual labels:  sms
dj-twilio-sms
Twilio SMS Integration for Django
Stars: ✭ 15 (-21.05%)
Mutual labels:  sms
go-mitake
A Mitake SMS library for Golang
Stars: ✭ 15 (-21.05%)
Mutual labels:  sms
NMEA2000WifiGateway-with-ESP32
This repository shows how to build a NMEA2000 WiFi Gateway with voltage and temperature alarms.
Stars: ✭ 38 (+100%)
Mutual labels:  gateway
scoutx
ScoutX: An SMS/Voice notifier for Nightscout, and now currently working on a Wisblock powered GPS tracker with Helium as well as an accessible DIY Libre CGM solution.
Stars: ✭ 33 (+73.68%)
Mutual labels:  sms
php-ipg-ir
IPG (Internet Payment Gateway) manager for Iran Banking System
Stars: ✭ 26 (+36.84%)
Mutual labels:  gateway
codeRigade
Realtime collaborative code-editor
Stars: ✭ 17 (-10.53%)
Mutual labels:  nodejs-server
smart-cloud
基于springboot && springcloud的脚手架,支持服务合并部署与拆分部署、接口加解密签名、日志数据 脱敏、接口数据mock、接口文档自动生成、请求幂等校验、接口日志&&sql日志切面打印、分表分库分布式事务、国际化语言等
Stars: ✭ 167 (+778.95%)
Mutual labels:  gateway
laravel-multi-payment
Laravel online gateway payment package with multi driver support
Stars: ✭ 22 (+15.79%)
Mutual labels:  gateway
ipns-link
Expose local http-server (web-app) through IPNS
Stars: ✭ 18 (-5.26%)
Mutual labels:  gateway
meshquitto
A simple Arduino project, which aims to provide a gateway between a mesh network of ESP8266's and a remote MQTT broker.
Stars: ✭ 37 (+94.74%)
Mutual labels:  gateway
go sgip
This is an implementation of SGIP 1.2 for Go
Stars: ✭ 17 (-10.53%)
Mutual labels:  sms
screeps notify
Send messages (SMS, Slack) from inside Screeps Scripts
Stars: ✭ 21 (+10.53%)
Mutual labels:  sms
docs
blaulichtSMS API (Schnittstellenbeschreibung)
Stars: ✭ 15 (-21.05%)
Mutual labels:  sms
influxdb-gateway
用于检测和压缩influxdb的数据,用于跨机房传输
Stars: ✭ 59 (+210.53%)
Mutual labels:  gateway

ScriptBox SMS gateway


Instalation

 npm install -g scriptbox

For contributors see detailed instructions here

How use

In first you need configure the scriptbox

scriptbox config

After config, run scriptBox scriptbox start

By default scriptBox listen the port 13014

Goto to http://127.0.0.1:13014 for the dashboard

Goto to http://127.0.0.1:13014/admin for administrate

Default user

the administrator : login: oshimin, password: secret

the active user : login: bob, password: secret

the unactive user : login: joe, password: secret

Explain SMS service philosophy

Each SMS service is a 'Mot Cle' (keyword in english)

Each Mot Cle must be link to a script

Each Mot Cle must be have a validtor expression(RegEx)

Each Mot Cle must be have a reject expression(RegEx)

A service can rewrite SMS, with Rewriter script.

The Rewriter script it's only for modify sms value, it run in an isolate js context and the runing time cannot exced 25ms.

Add a script

Click on "Main Menu" > "Script" > "Ajouter" Fill nom(name), description and script (javascript programme), set Module "off".

Sample script
//Nom: echo
//Description : Echo SMS
//Module : OFF
var message = new MSG(sms); // build a new sms
message.sendSMS(); // send message to the sender

this script resend the recieved message .

Add a module

Click on "Main Menu" > "Script" > "Ajouter" Fill nom(name), description and script (javascript programme), set Module "on".

Sample module
//Nom: gabonNumber
//Description : Validate gaboneese numbers
//Module : ON
/*Your script Here*/
exports.airtel = /^((\+|00)?241)?0(4|7)\d{6}$/;
exports.libertis = /^((\+|00)?241)?0(2|6)\d{6}$/;
exports.moov = /^((\+|00)?241)?05\d{6}$/;
exports.GT = /^((\+|00)?241)?(01)?\d{6}$/;

this module can be used in script numeros = require('gabonNumber');

Sample script who use module
//Nom: hello
//Description : Send Hello SMS and get information network
//Module : OFF
var num = require("gabonNumber");
logger.log(sms.sender); // logger is like `console` in nodejs 
// sms contain the SMS object 
var m = new MSG(sms);
m.msgdata = "Hello SMS!";
if(num.airtel.test(sms.sender))
	m.msgdata += " - Airtel";
else if(num.libertis.test(sms.sender))
	m.msgdata += " - Libertis";
else if(num.moov.test(sms.sender))
	m.msgdata += " - MOOV";
else if(num.GT.test(sms.sender))
	m.msgdata += " - GT";
else 
	m.msgdata += " - Unknow";

m.sendSMS();

You can juste create a Mot Cle (keyword) , and send sms for test it;

    Nom : test
    Script : hello
    Validateur SMS : Oui
    Reject Sender : Non

Add an expression

Click on "Main Menu" > "Expression" > "Ajouter" Fill nom(name), Validateur(RegExp), Choose Option

Sample expression
    Nom : Oui
    Validateur (?:) => /(?:)/ => allways true
    
    Nom : Non
    Validateur ^[^\w\W]$ => /^[^\w\W]$/ => allways false

    Nom : Gaboneese number
    Validateur ^((00|\+)?241)0[1234567]\d{6} => /^((00|\+)?241)0[1234567]\d{6}/ => allways start by 241,+241 or 00241

Add a connector

Click on "Main Menu" > "Connecteor" > "Ajouter" Fill Identifiant(name), Choose Type

Sample connector
    Nom : KANNEL
    Type : KANNEL
Sample Connfig connector
    host : 127.0.0.1
    Port : 13013
    id : LoveIsMyReligion
    tls : false
Start a connector

Click on "Main Menu" > "Connecteor" > "List" > Start Server

Stop a connector

Click on "Main Menu" > "Connecteor" > "List" > Stop Server

Add an Mot cle(keyword)

Click on "Main Menu" > "Mot cle" > "Ajouter"

Fill nom(name), choose Script, Validateur SMS(Check SMS format),Reject Sender(check sender), "Numeros Courts(short Code allowed, no select for all short Codes)

Sample Mot Cle
    Nom : hello
    Script : hello
    Validateur SMS : Oui
    Reject Sender : Non
    Rewriter Script : /*Empty*/

Test Script

Configue and start the connector (SMPP or kannel) and send "hello" to the connector, scriptbox willl reply "Hello SMS"

TODO

  • More documentation
  • More samples (Ex. voting system)
  • Routing system
  • Script installer for production instance

Screen Capture

Capture 9

Capture 2

Capture 1

Capture 3

Capture 4

Capture 5

Capture 6

Capture 7

Capture 8

LICENCE

(The MIT License)

Copyright (c) 2007-2009 Ulrich Badinga <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].