Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get sendSMS kannel reply? #2

Open
tamerMarzouk opened this issue Apr 6, 2017 · 3 comments
Open

how to get sendSMS kannel reply? #2

tamerMarzouk opened this issue Apr 6, 2017 · 3 comments
Assignees

Comments

@tamerMarzouk
Copy link

When using kannel sendSMS url "/cgi-bin/sendsms" the result could be somthing like this:
0: Accepted for delivery

Is there a way to get the result of the sendSMS method ?

@badlee
Copy link
Owner

badlee commented Apr 6, 2017

Hi dear,
Thank's for using kannel.js, I'll add this feature "A callback for receipt the status of the SMS".
This feature look like it :

app.sendSMS({
   from : "TEST",
   to     : "0644",
   msgdata  : "test de SMS"   
},function(err,status){
   console.log("Le status du SMS est",status);
})

You can propose one or more features too.

For "/cgi-bin/sendsms" on sample, the SMS is submited to bearerbox and a ack wil be send to you after traitement.

I can add dlr_url parameter for monitor the SMS's status on this sample.

Regards.

PS : sorry for my english, I'm french speaker.

@badlee badlee self-assigned this Apr 7, 2017
@tamerMarzouk
Copy link
Author

Wouldn't be easier if the sendSMS would return the SMS id property.
Then we can use the "ack" event to check the SMS was received by kannel ?

@NickTsitlakidis
Copy link

Hello, great work on the project. Being able to set the dlr_url when sending an sms would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants