Giter Club home page Giter Club logo

Comments (7)

guicuton avatar guicuton commented on August 20, 2024

The MO (received message) have esm_class different of 4.
But despite of this you have to check with your broker if the connection that you use support 2-way message

from node-smpp.

elhananjair avatar elhananjair commented on August 20, 2024

@guicuton thanks, I found that the SMSC I am using only uses SOAP to send MO messages to my application, therefore it doesn't really relate to SMPP.

from node-smpp.

elhananjair avatar elhananjair commented on August 20, 2024

Hello @guicuton
I tried bind_transciever and actually, I am getting MO messages but one issue here is when the user sends some keywords that trigger the subscription to my service I am not receiving those messages, in my case 'OK' is for subscription and 'Stop' is to unsubscribe.

Any ideas on this?

from node-smpp.

guicuton avatar guicuton commented on August 20, 2024

Hello @guicuton
I tried bind_transciever and actually, I am getting MO messages but one issue here is when the user sends some keywords that trigger the subscription to my service I am not receiving those messages, in my case 'OK' is for subscription and 'Stop' is to unsubscribe.

Any ideas on this?

Usually the SMSC only will send the MO to you as an answer of a MT.

If your user is sending, for example "OK" (doesn't matter the word) for your shortcode without being an answer from a previous MT that you sent to him this message will reach your SMSC provider but they will not know to which client they have to reflect the MO, which means that you'll not receive the message.

To work with keywords you have to check with your SMSC provider if they support work with keywords and if they have the keyword available for you.

Once they have settled up for you the shortcode and the keyword, every time that someone sends "ok" for your shortcode 29999 you will receive the message on deliver_sm event

from node-smpp.

elhananjair avatar elhananjair commented on August 20, 2024

If your user is sending, for example "OK" (doesn't matter the word) for your shortcode without being an answer from a previous MT that you sent to him this message will reach your SMSC provider but they will not know to which client they have to reflect the MO, which means that you'll not receive the message.

But as I said earlier, I am receiving MO messages already (with the bind_transceiver method) here is an example I am outputting sending SMS from my phone:

Oct 20 15:38:35 fedora node[11193]: { message: 'Hey ' }
Oct 20 15:39:03 fedora node[11193]: { message: 'Hey ' }
Oct 20 15:39:25 fedora node[11193]: { message: 'Hey ' }
Oct 20 15:39:37 fedora node[11193]: { message: 'Test' }

But as I send Ok and Stop it won't send to my application, that's what confused me.

To work with keywords you have to check with your SMSC provider if they support work with keywords and if they have the keyword available for you.

The keywords are 'OK' for subscription and 'Stop' for unsubscribe. If they subscribe with OK they will receive SMS sent from my application.

Once they have settled up for you the shortcode and the keyword, every time that someone sends "ok" for your shortcode 29999 you will receive the message on deliver_sm event

I have a shortcode for both MT and MO, currently, I am only using an MT shortcode to send SMS, but I have no clue where I need to use the MO shortcode in my code.

from node-smpp.

elhananjair avatar elhananjair commented on August 20, 2024

@guicuton any ideas on my reply?

@farhadi @juliangut any suggestions on this issue?

Thanks

from node-smpp.

elhananjair avatar elhananjair commented on August 20, 2024

Well, finally it seems the SMSC is sending the MO messages through HTTP post request with an XML request body, that way I am parsing the request body to receive the details.

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.