Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jroesch/ruby-kannel
An example Sinatra app that communicates with Kannel to send and receive SMS.
https://github.com/jroesch/ruby-kannel
Last synced: 24 days ago
JSON representation
An example Sinatra app that communicates with Kannel to send and receive SMS.
- Host: GitHub
- URL: https://github.com/jroesch/ruby-kannel
- Owner: jroesch
- Created: 2014-08-21T16:54:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-21T21:23:11.000Z (about 10 years ago)
- Last Synced: 2023-08-06T07:05:52.409Z (over 1 year ago)
- Language: Shell
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
A simple skeleton project that shows how one gets setup with running Kannel,
and communicating with it via a simple Sinatra application.# Contents
- `Vagrantfile` is using the vmware-fusion provider but can easily be changed
to work with a different provider. It will create a blank Ubunutu machine locally for
testing.
- `setup.sh` can be used to provision a Ubunutu server with all the necessary dependencies.
- `kannel.conf` contains the basic settings for running `bearerbox` and `smsbox`.
- `modems.conf` is copied from the source tree of Kannel and used for recongnizing
different modems.
- `Gemfile` contains all the necessary deps for the Sinatra app.
- `kannel_test.rb` runs the Sinatra app.
- `start_sms.sh` will start up the needed pieces of the sms service.# Running the example
After you have fully configured the server you can do:
```
./start_sms.sh
ruby kannel_test.rb
```
then in another screen/tmux session or tab you can send a message with:
```
./fakesmsc -m 1 "123 789 text ping-kannel"
```and queue a message with:
```
curl "http://localhost:13013/cgi-bin/sendsms?username=testuser&password=foobar&to=4055544&test=hi"
```