Comments (2)
Hey,
Idk if i understand you well but the charge of message sent is a common flow on every SMSC provider.
Differ from email that usually are billed by delivery, the sms are billed by sent, no matter was the final status
Soon as your SMSC vendor confirm the acceptance of message, they will charge you.
The ESM_CLASS 4 will be given you for DLR (delivery reports) from messages that you had sent.
If isn't 4, then it's a message originated (MO) from a mobile to your shortcode or as reply from some message that you have sent
If you are creating an app that allows user to send SMS, the best way you can do it about the billing is charge by sent, not by delivery.
Keep in mind that lot of carriers around the globe don't send the DLR , so make your whole system dependent on DLR to charge your user it's not a good idea.
To read the final status of message, you will need read the short_message
param given in your deliver_sm
.
Netherless, any doubt about the params, status, esm_class, TLVs, given on yours deliver_sm with this SMSC provider, you'll sure find best match answers with their support :-)
from node-smpp.
@guicuton thanks for your reply.
Soon as your SMSC vendor confirms the acceptance of a message, they will charge you.
My idea was opposed to this one, From my app I send a submit_sm request to SMSC and then SMSC will charge the end user for every SMS received not me.
So the whole point I was making was, that delivery_report is with esm_class=0 means the end user has received the SMS right? The SMSC won't send the text unless the end-user has a balance on the phone, so in that case, my app shouldn't receive a delivery report or pdu_command status shouldn't be = 0 right?
EDIT
To read the final status of the message, you will need to read the short_message param given in your deliver_sm.
oh God this one, I had no idea about that, I was thinking just if I get the delivery receipt it indicates successfully delivered SMS, but now I see a stat string inside the short_message param just like you said.
Thank you so much I will re-edit my code to only depend on that value.
from node-smpp.
Related Issues (20)
- Node client crash with ECONNRESET HOT 5
- Couldn't recieve SMS from SMSC HOT 7
- Differntiate between incoming message and an incoming message that gets triggered after a message is sent using smpp HOT 2
- Error while connecting to server PDU_STATUS 15 HOT 3
- connection issue when setting up the smpp server. HOT 6
- [Support] total received DLR and Submit response vs total sent SMS
- message_payload or UDH header HOT 1
- Client Not reciving DLR Report
- Only one message recieved when multiple messages are sent. HOT 5
- couldn't perform submit_sm although there is a binding
- Rebind on reconnecting to smsc is not working
- Support for Session Pooling.
- How to handle bind_transrecivier command status 5 HOT 5
- Session Randomly dropped by the server | ECONNRESET HOT 12
- Client receiving empty message due to encoding conflict. HOT 2
- [IGNORE]
- Multiprocessing HOT 2
- Why this library is too much sensitive ?
- Trying to debug message undefined error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-smpp.