jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

[ask] connecting sms communication between Jasmin smpp server with network simulator

Open veenone opened this issue 1 year ago • 3 comments

Hello all, sorry I'm really new within smpp topic. Currently I have a difficulty understanding the communication connection between Jasmin as SMPP server with external connection (network simulator in this case) to deliver sms from client to the target mobile phone.

please find my simple diagram below. jasmin

my question is how to transfer the sms message sent by client to the network simulator using a websocket connection ? so the sms data to be transformed into different format. is this functionality supported by Jasmin? or any ideas how to bridge this communication?

thank you

veenone avatar Sep 22 '23 03:09 veenone

Hello @veenone

I understand your network simulator (?) component is exposing a websocket (only ?) interface ?

If this is correct, then you need a smpp/websocket adaptor.

There's a bunch of solutions you can adopt, https://github.com/fiorix/sms-api-server is a http to websocket/sse gateway, but you still need to make jasmin talk http (this is a paid plugin).

There's also the apache camel way (requiring dev/design skills), it takes smpp connector to a multitude of other protocols including websockets.

WSO2 APIM is a product based on apache camel, it offers such a feature: https://apim.docs.wso2.com/en/4.1.0/reference/connectors/smpp-connector/smpp-inbound-endpoint-example/

It's up to you to choose your path

farirat avatar Sep 22 '23 16:09 farirat

Hello @farirat , yes you are correct. There is api to send sms through this specific port in json format provided by the network simulator.

So from what I understood, in order to make the complete connection, thera are 2 ways:

  1. I can purchase jasmin plugin to allow communication in http, then forward this output by utilizing the sms-api-server to forward the message to the network simulator

  2. Utilizing wso2 api to connect with jasmin, then forward the data to network simulator using http

Is my understanding correct?

Thank you very much for your explanation

veenone avatar Sep 23 '23 00:09 veenone

Yes, that's correct.

Keep in mind sms is bi-directionnal where any protocol/solution you may consider must provide the following types of sms:

  • MO: mobile originated messages, coming from the network to your app,
  • MT: mobile terminated messages, going from your app toward the network,
  • DLR: delivery reports, attached to MTs, they come from the network to your app.

farirat avatar Sep 25 '23 18:09 farirat