Send SMS From SMPP Server API

877 views
Skip to first unread message

Diego Barrios

unread,
Feb 9, 2016, 3:38:50 PM2/9/16
to Jasmin SMS Gateway
Hello,

Im trying to set up the jasmin SMPP Server API. But i'm having some issues.

I connected a client (Kannel)  to the SMPP server and it worked, i can send sms from kannel to Jasmin, and i can use the mtroute table to route the sms, but
i have no idea how can i send sms to kannel from Jasmin Server.

Anyone has any idea how can i solve it.
Thanks for you help.

My config in the jcli is:

jcli : user -l
#User id          Group id         Username         Balance MT SMS Throughput
#pre              lamerica         pre              87.0    207    ND/ND   
#pre2             lamerica         pre2             ND (!)  ND (!) ND/ND   
Total Users: 2

jcli : filter -l
#Filter id        Type                   Routes Description                     
#dSource222       SourceAddrFilter       MO MT  <SA (src_addr=^222d+)>          
#f444             SourceAddrFilter       MO MT  <SA (src_addr=444)>             
#fSoruce201       SourceAddrFilter       MO MT  <SA (src_addr=201)>             
#f333             SourceAddrFilter       MO MT  <SA (src_addr=333)>             
#fUserPre         UserFilter             MT     <U (uid=pre)>                   
#To11111Demo      DestinationAddrFilter  MO MT  <DA (dst_addr=^11111$)>         
Total Filters: 6

jcli : mtrouter -l
#Order Type                    Rate       Connector ID(s)                                  Filter(s)                                                       
#1     StaticMTRoute           0 (!)      smppc(smppla)                                    <SA (src_addr=333)>                                             
Total MT Routes: 1

jcli : smppccm -l
#Connector id                        Service Session          Starts Stops
#smppla                              stopped NONE             1      1    
Total connectors: 1

jcli : morouter -l
#Order Type                    Connector ID(s)                                  Filter(s)                                                       
#3     StaticMORoute           smpps(pre)                                       <SA (src_addr=444)>                                             
Total MO Routes: 1


Bruno C

unread,
Feb 9, 2016, 4:39:02 PM2/9/16
to Jasmin SMS Gateway
Hi Dego,

Jasmin to Kannel direction is handled through the MO routing table, if you set it up right then every received MO on Jasmin will get forwarded to Kannel.

Diego Barrios

unread,
Feb 9, 2016, 5:07:07 PM2/9/16
to Jasmin SMS Gateway
Hi Bruno,

I think i have setted the motable rigth.
But i dont know hot to test it.

For example for send an mt to Jasmin, i use the kannel url and the sms is sent to Jasmin as i expected. But im not sure how can i send an MO to Jasmin. Thats mi biggest problem.

I dont know if i have to use
curl "http://127.0.0.1:1401/send?username=pre&password=pre&from=333&to=1111185&content=aaaaaa"
or is another url or i should save a message in rabbitmq.


Add: I setted a tranceiver connection so i want to send and receive the sms through the same connection.


Raam

unread,
Feb 10, 2016, 4:22:48 PM2/10/16
to Jasmin SMS Gateway
There are several tools online that can help with this. Check out jsmpp or cloud hopper.

Here's a link to their feature list.

https://github.com/fizzed/cloudhopper-smpp/blob/master/README.md

Diego Barrios

unread,
Feb 11, 2016, 7:35:10 AM2/11/16
to Jasmin SMS Gateway
Thanks for your help, finally i didt

I found that Jasmin reads pdu from the RabbitMQ queues with names deliver.sm.*


George Precious

unread,
Jul 21, 2017, 11:41:44 AM7/21/17
to Jasmin SMS Gateway


On Thursday, February 11, 2016 at 1:35:10 PM UTC+1, Diego Barrios wrote:
Thanks for your help, finally i didt

I found that Jasmin reads pdu from the RabbitMQ queues with names deliver.sm.*



Please how did you go about this, i am having the same problem. I do not want to use http or the restful api, i just want to push my messages to the rabbitmq's queue.

Bruno C

unread,
Jul 26, 2017, 11:33:47 AM7/26/17
to Jasmin SMS Gateway
Are you having deliver_sm coming on your smpp server side ? if yes then you're having an inversed messaging flow, a commercial solution is available for this, please file a demand to sup...@jasminsms.com

Thx, Bruno
Reply all
Reply to author
Forward
0 new messages