jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
1.03k stars 555 forks source link

How to set to "UNLIMITED" or to HIGH VALUE the number of SMS sent per second for "submit_throughput" with Jasmin SMPP Server informations ??? #913

Closed ChegMarcoADVANTECH closed 2 years ago

ChegMarcoADVANTECH commented 4 years ago

HELLO All.

Right after installing JASMIN, I created a Connector with the following commands:

telnet 127.0.0.1 8990 username: jcliadmin password: jclipwd

Create a group:

jcli : group -a gid foogroup ok Successfully added Group [foogroup]

Create a user:

jcli : user -a username smsgtway password izyzk67 gid foogroup uid bjsms ok Successfully added User [bjsms] to Group [foogroup]

Create a SMPP Connector:

jcli : smppccm -a cid SMS_CONNECTOR host 127.0.0.1 port 2775 username smsgtway password izyzk67 bind transceiver submit_throughput 980796868 ok Successfully added connector [SMS_CONNECTOR]

Start the connector:

jcli : smppccm -1 SMS_CONNECTOR

Configure a simple route for sending SMS:

jcli : mtrouter -a type defaultroute connector smppc(SMS_CONNECTOR) rate 0.00 ok Successfully added MTRoute [DefaultRoute] with order:0

Configure a route to receive SMS:

jcli : morouter -a type DefaultRoute connector smpps(SMS_CONNECTOR) ok

My problem is how to define the Number of SMS to send per second in submit_throughput of the SMPP Server of Jasmin because by adding the SMPP Connector, I added the IP Address (127.0.0.1) on which I installed the Server Jasmin and as the Port Number, I put 2775.

Here is the information that I put during the creation of the SMPP Connector with for "host", the IP address of the Linux System on which Jasmin is installed "127.0.0.1" and for "port", the Jasmin's default port number "2775":

jcli : smppccm -a cid SMS_CONNECTOR host 127.0.0.1 port 2775 username smsgtway password izyzk67 bind transceiver submit_throughput 980796868 ok Successfully added connector [SMS_CONNECTOR]

So, how to create an SMPP connector with the information of the Linux Server on which Jasmin has been installed and especially how to set to "UNLIMITED" or to HIGH VALUE the number of SMS sent per second for "submit_throughput" ???

farirat commented 4 years ago

Are you loooking to limit the throughput on the user side (smpps) ? or on the provider side (smppccm) ?

ChegMarcoADVANTECH commented 4 years ago

Are you loooking to limit the throughput on the user side (smpps) ? or on the provider side (smppccm) ?

THANK You for your reply Dear @farirat.

I want to limit the throughput both (on the provider side AND on the user side).

Help me please.

magojr commented 4 years ago

I think that may be usefull to know that during the configuration you can push the Tab (on the keyboard) to see all the available options. They are available also in the documentation, for example for the connector (to the provider - smppcm): https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-client-connector-manager (submit_throughput parameter) For incoming connections (smpp server - smpps) you have to set it for every user in the quota section: https://docs.jasminsms.com/en/latest/management/jcli/modules.html#user-credentials https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-server-section (http_throughput or smpps_throughput parameter)

ChegMarcoADVANTECH commented 4 years ago

I think that may be usefull to know that during the configuration you can push the Tab (on the keyboard) to see all the available options. They are available also in the documentation, for example for the connector (to the provider - smppcm): https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-client-connector-manager (submit_throughput parameter) For incoming connections (smpp server - smpps) you have to set it for every user in the quota section: https://docs.jasminsms.com/en/latest/management/jcli/modules.html#user-credentials https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-server-section (http_throughput or smpps_throughput parameter)

THANK You for your reply Dear @magojr.

The goal for me is to configure the Jasmin SMPP Server so that it is able to send a number of "787777889" (for example) of SMS per second so that when I go using the SMPP Server in a remote SMSC, I am able to send the "787777889" configured on the Jasmin SMPP Server which the SMSC uses to send the SMS.

Help me please.

tarikogut commented 4 years ago

Do you want spam protection ?

On 22 Oct 2020, at 16:09, ChegMarcoADVANTECH notifications@github.com wrote:

I think that may be usefull to know that during the configuration you can push the Tab (on the keyboard) to see all the available options. They are available also in the documentation, for example for the connector (to the provider - smppcm): https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-client-connector-manager https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-client-connector-manager (submit_throughput parameter) For incoming connections (smpp server - smpps) you have to set it for every user in the quota section: https://docs.jasminsms.com/en/latest/management/jcli/modules.html#user-credentials https://docs.jasminsms.com/en/latest/management/jcli/modules.html#user-credentials https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-server-section https://docs.jasminsms.com/en/latest/management/jcli/modules.html#smpp-server-section (http_throughput or smpps_throughput parameter)

THANK You for your reply Dear @magojr https://github.com/magojr.

The goal for me is to configure the Jasmin SMPP Server so that it is able to send a number of "787777889" (for example) of SMS per second so that when I go using the SMPP Server in a remote SMSC, I am able to send the "787777889" configured on the Jasmin SMPP Server which the SMSC uses to send the SMS.

Help me please.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jookies/jasmin/issues/913#issuecomment-714482266, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPZPXHR5RQJHRXNMKGIX73SMAVH5ANCNFSM4S3BXZ4A.

ChegMarcoADVANTECH commented 4 years ago

Do you want spam protection ?

I just want to configure the limit of a Value on the number of SMS to send per Second via Jasmin SMPP from my SMPP gateway ???

tarikogut commented 4 years ago

Example 7777777 if same message and same number 5 time send this is going to black list for 4 mins or x This is spam protection

On 22 Oct 2020, at 16:15, ChegMarcoADVANTECH notifications@github.com wrote:

Do you want spam protection ?

I just want to configure the limit of a Value on the number of SMS to send per Second via Jasmin SMPP from my SMPP gateway ???

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jookies/jasmin/issues/913#issuecomment-714485890, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPZPXBV674Y3Y2QRTKL4WTSMAV6ZANCNFSM4S3BXZ4A.

ChegMarcoADVANTECH commented 4 years ago

Example 7777777 if same message and same number 5 time send this is going to black list for 4 mins or x This is spam protection

I don't know if this is what you call "spam protection". BUT as I explained before the objective for me is to configure the Jasmin SMPP server so that it can send a certain number of "999999999" (for example) of SMS per second so that when I use the server SMPP in a remote SMSC, I can send the "999999999" configured on the SMPP Jasmin server that the SMSC uses to send the SMS.

magojr commented 4 years ago

The goal for me is to configure the Jasmin SMPP Server so that it is able to send a number of "787777889" (for example) of SMS per second so that when I go using the SMPP Server in a remote SMSC, I am able to send the "787777889" configured on the Jasmin SMPP Server which the SMSC uses to send the SMS.

Help me please.

I don't understand your point/question. Is there a question? I think that the first step in any case should be check your provider parameters or account detail. The provider should give you at least: -IP address or hostname of the smpp connection; let's say 1.2.3.4 -port; let's say 2775 -user; let's say "provideruser" -password; let's say "providerpassword" -bind type allowed (receiver | transmitter | tranceiver); let's say "transceiver" -troughtput allowed (number of SMS/second); let's say 30 You have to create the connection manager jcli : smppccm -a cid SMS_CONNECTOR host 1.2.3.4 port 2775 username provideruser password providerpassword bind transceiver submit_throughput 28 ok

This is the way jasmin can connect to the upstream provider to send nomore than 28 sms/second. You probably noted 28 instead of the 30 limit, that's because the different way to measure the troughtput may bring to throttle error if you set the exact limit (you can try but keep a couple of SMS/second lower is a safer config to avoid throttling error from the provider. If you want NOT to have any limit, you can avoid to set submit_throughput, so that it became unlimited.

After that you can crete a number of users/password account limited "as you prefer". Some "client" may use to connect to your jasmin and send SMS using HTTP api or SMPP protocol. SMPP protocol is faster than HTTP because the connection is permanent; it will be created just 1 time and keeped alive to "inject" burst of SMS. The HTTP connection need HTTP request that will be lost and recreated for every SMS, creating a big bottleneck that slow down the overall speed. "Client" may be real customer or your software or any piece of software that want to send SMS using your Jasmin node.

I hope this can answer to your question/doubt!

ChegMarcoADVANTECH commented 4 years ago

OK. I will explain my problem to you very clearly. Can we create a route for sending SMS via Jasmin without creating a connector knowing that my goal is to use the SMPP information of the Jasmin Server in the Panel of my SMSC provider. So in case I need to use the information of my SMPP Jasmin Server in the remote SMSC Panel, how could I create create the default Route for sending SMS from Jasmin WITHOUT LINKING THIS ROUTE FOR SENDING SMS via Jasmin TO THE CAR CONNECTOR according to Jasmin's documentation, to create a route for sending SMS, it must be linked to the SMPP CONNECTOR created.

So how can I create a default Jasmin SMS sending route without binding it to a Connector knowing that the Jasmin SMPP Server is supposed to be used in the Panel configuration of my SMSC provider ???

farirat commented 4 years ago

Dude .. it's like we're talking two different languages.

Is it better for you to express using a sketchboard maybe ?

tarikogut commented 4 years ago

What about single shift ???:) @The_Z

On 22 Oct 2020, at 17:27, The Z notifications@github.com wrote:

Dude .. it's like we're talking two different languages.

Is it better for you to express using a sketchboard maybe ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jookies/jasmin/issues/913#issuecomment-714532668, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPZPXADAHKIKGIFDJYGTTDSMA6MXANCNFSM4S3BXZ4A.

farirat commented 4 years ago

What about single shift ???:) @The_Z On 22 Oct 2020, at 17:27, The Z @.***> wrote: Dude .. it's like we're talking two different languages. Is it better for you to express using a sketchboard maybe ? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#913 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPZPXADAHKIKGIFDJYGTTDSMA6MXANCNFSM4S3BXZ4A.

Is this from another issue ? 🥇

magojr commented 4 years ago

OK. I will explain my problem to you very clearly. Can we create a route for sending SMS via Jasmin without creating a connector knowing that my goal is to use the SMPP information of the Jasmin Server in the Panel of my SMSC provider. So in case I need to use the information of my SMPP Jasmin Server in the remote SMSC Panel, how could I create create the default Route for sending SMS from Jasmin WITHOUT LINKING THIS ROUTE FOR SENDING SMS via Jasmin TO THE CAR CONNECTOR according to Jasmin's documentation, to create a route for sending SMS, it must be linked to the SMPP CONNECTOR created.

So how can I create a default Jasmin SMS sending route without binding it to a Connector knowing that the Jasmin SMPP Server is supposed to be used in the Panel configuration of my SMSC provider ???

Great! Now that you explained ver clearly I probably understood the point! 8-|

You are thinking that the provider should use credentials that you previowsly configured on Jasmin but IT'S THE OPPOSITE! Jasmin need the credential that the provider gives you. So, Jasmin cannot be configured to send if a provider does not gave you the credential yet. You must insert in jasmin smppcm: IP, port, username and password supplied you from the provider.

Knowing that, if you want to "use/test" Jasmin without a provider, you can install 2 jasmin nodes on 2 different server or vm. 1) a node A where you just set up a group and a user (remember to activate it) 2) a node B that send SMS connecting to the node A (in this case the node A is used in place of a provider). In the node B you can set the smppcm using IP, port, user and password that you previowsly setted up in the node A, then connect.

From your application you should send SMS to the node B and you can check logs and verify that the node B sends SMS to the node A. In the node A all the message will be keeped in queue and trashed after the timeout because ther's no any SMS upstream provider connected in order to send SMS but you can use a working Jasmin that receive SMS and send them "down to the chain" to the node A. You probably want to switch the node A with the real provider in the future, isn't it?

ChegMarcoADVANTECH commented 4 years ago

Yes

github-actions[bot] commented 2 years ago

Stale issue detected, remove stale label or comment or this will be closed soon.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled more than a year with no activity.