Coder Social home page Coder Social logo

openvox-sms-worker's Introduction

openvox-sms-worker

Receive from RabbitMQ task for sending via OpenVox SMS Gateway

Fast start

Use openvox-sms-worker-app http://github.com/antirek/openvox-sms-worker-app

Use

Step 1. Create your own app

Step 2. Install openvox-sms-worker

npm install openvox-sms-worker

Step 3. Add code to your app.js

var config = require('./config');
var OpenvoxSmsWorker = require('openvox-sms-worker');

var server = new OpenvoxSmsWorker(config);
server.start();

Step 4. Check config.js

Step 5. Run your app

node app.js

Configuration

your config.js like this

{
    'openvox-sms': {
        host: '192.168.0.1',
        port: 5038,
        username: 'admin',
        password: 'admin'
    },
    amqp: {
        url: 'amqp://localhost',
        queue: 'task_queue'
    },
    logger: {
        file: {
            filename: '/var/log/openvox-sms-worker.log',
            json: false
        },
        console: {
            colorize: true
        }
    }
}

SMS in queue

Message for sending via openvox-sms-worker must have format like this

{
    span: 1,   //span module of gsms gateway, default 1, not required
    source: 'From Alaska server', //define source of message
    targetNumber: '89135292926',  // or '+79135292926', string format
    msgText: 'Some text for sending as SMS to my dear friends!'   // short or long sms text
}

Send message to RabbitMQ queue and worker process it to OpenVox VoxStack GSM gateway.

Bugs?!

Please send it me.

openvox-sms-worker's People

Contributors

antirek avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

openvox-sms-worker's Issues

send with more gsm-ports

I'm using a 44-ports gsm gateway. It's seems to work fine with span = 4 but I can't seem to be able to use more than those ports. Is there a way to get rabbitMQ to use all the ports available preferably without having to specify a specific port?

This is the error I get whenever I try using a 'span' larger than 4:
send2-1 msg {"source":"My service 1","targetNumber":"6691065179","msgText":"testing 1 2 1 2","span":"5"} app-0 6/2/2016, 11:45:44 PM - info: 0000211 received {"source":"My service 1","targetNumber":"6691065179","msgText":"testing 1 2 1 2","span":"5"} app-0 6/2/2016, 11:45:44 PM - info: 0000211 validated successfully source=My service 1, targetNumber=6691065179, msgText=testing 1 2 1 2, span=5 app-0 6/2/2016, 11:45:44 PM - info: 0000211 sms for send span=5, number=6691065179, text=testing 1 2 1 2 app-0 6/2/2016, 11:45:44 PM - info: 0000211 send good response=follows, content=Response: Follows app-0 Privilege: Command app-0 ActionID: 1464932744526 app-0 No GSM running on span 5 app-0 Command 'gsm send sync sms 5 6691065179 "testing 1 2 1 2" 20' failed., actionid=1464932744526

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.