Git Product home page Git Product logo

Comments (2)

guicuton avatar guicuton commented on July 21, 2024 1

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.

elhananjair avatar elhananjair commented on July 21, 2024

@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)

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.