badlee / kannel.js

Javascript implementation of Kannel Box protocol
http://badlee.github.io/kannel.js/
41 stars 11 forks source link

submission to smsbox #3

Open Muhamed-Hamid opened 7 years ago

Muhamed-Hamid commented 7 years ago

Hi Badlee,

I'm trying to test your script but when sending over scripting or echobox only update with the sent is over your web interface but no actual send to the smsbox or the bearerbox, is there something i'm missing or another way to do that, btw i'm running bearerbox from kannel project and smsbox from your project.

app = new kannel.smsbox(
    (process.argv[2] || __dirname+"/../../kannel/kannel.conf")+"?"+
    "host=smsbox[-1:].bearerbox-host&"+
    "port=core[-1:].smsbox-port&"+
    "id=smsbox[-1:].smsbox-id&"+
    "frequence=smsbox[-1:].frequence-time&"+
    "http_port=smsbox[-1:].sendsms-port&"+
    "admin_port=core[-1:].admin-port&"+
    "users=sendsms-user&"+
    "services=sms-service&"+
    "admin_pwd=core[-1:].admin-password&"
);

PORT = app.conf.http_port || PORT;

The above should connect and use the configurations to submit but this don't happen.