한국어

소프트스위치

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app



JASMIN SMS Gateway how to send message



https://docs.jasminsms.com/en/latest/installation/index.html#ubuntu


Installation

The Installation section is intended to get you up and running quickly with a simple SMS sending scenario through HTTP API or SMPP Server API.

Jasmin installation is provided as rpm & deb Linux packages, docker image and pypi package.

Important

Jasmin needs a working RabbitMQ and Redis servers, more info in Prerequisites & Dependencies below.

Prerequisites & Dependencies

Jasmin requires Python 3 (Python 2 is no more supported) with a functioning pip module.

Hint

Latest pip module installation: # curl https://bootstrap.pypa.io/get-pip.py | python

Depending on the Linux distribution you are using, you may need to install the following dependencies:

  • RabbitMQ Server, Ubuntu package name: rabbitmq-server. RabbitMQ is used heavily by Jasmin as its core AMQP.
  • Redis Server, Ubuntu package name: redis-server. Redis is used mainly for mapping message ID’s when receiving delivery receipts.
  • header files and a static library for Python, Ubuntu package name: python-dev
  • Foreign Function Interface library (development files), Ubuntu package name: libffi-dev
  • Secure Sockets Layer toolkit - development files, Ubuntu package name: libssl-dev
  • Twisted Matrix, Python Event-driven networking engine, Ubuntu package name: python-twisted

Ubuntu

Jasmin can be installed through DEB packages hosted on Packagecloud:

curl -s https://setup.jasminsms.com/deb | sudo bash
sudo apt-get install jasmin-sms-gateway

Note

Ubuntu 20.04 and newer versions are supported.

You have to install and setup RabbitMQ or Redis servers on same machine (Default configuration) or on separate ones (Requires Jasmin configuration: /etc/jasmin/jasmin.cfg).

Note

redis and rabbitmq must be installed and already running.

Once Jasmin installed, you may simply start the jasmind service:

sudo systemctl enable jasmind
sudo systemctl start jasmind

Note

redis and rabbitmq must be installed and already running.

RHEL & CentOS

Jasmin can be installed through RPM packages hosted on Packagecloud:

curl -s https://setup.jasminsms.com/rpm | sudo bash
sudo yum install epel-release
sudo yum install jasmin-sms-gateway

Note

Many dependencies are installed from the Epel repository, please pay attention to activating this repository before installing jasmin-sms-gateway package.

Note

Red Hat Enterprise Linux 8 & CentOS 8 and newer versions are supported.

You have to install and setup RabbitMQ or Redis servers on same machine (Default configuration) or on separate ones (Requires Jasmin configuration: /etc/jasmin/jasmin.cfg).

Note

redis and rabbitmq must be installed and already running.

Once Jasmin installed, you may simply start the jasmind service:

sudo systemctl enable jasmind
sudo systemctl start jasmind

Pypi

Having another OS not covered by package installations described above ? using the Python package installer will be possible, you may have to follow these instructions:

System user

Jasmin system service is running under the jasmin system user, you will have to create this user under jasmin group:

sudo useradd jasmin

System folders

In order to run as a POSIX system service, Jasmin requires the creation of the following folders before installation:

/etc/jasmin
/etc/jasmin/resource
/etc/jasmin/store       #> Must be owned by jasmin user
/var/log/jasmin         #> Must be owned by jasmin user

Installation

The last step is to install jasmin through pip:

sudo pip install jasmin

systemd scripts must be downloaded from here <https://github.com/jookies/jasmin/tree/master/misc/config/systemd> and manually installed into your system, once placed in /lib/systemd/system jasmind shall be enabled and started:

sudo systemctl enable jasmind
sudo systemctl start jasmind

Note

redis and rabbitmq must be started with jasmin.

Docker

Containers are ideal for microservice architectures and for environments that scale rapidly or release often, Here’s more from Docker’s website.

Installing Docker

Before we get into containers, we’ll need to get Docker running locally. You can do this by installing the package for your system (tip: you can find yours here).

Once that’s set up, you’re ready to start using Jasmin container !

Using docker-compose

Create a file named “docker-compose.yml” and paste the following:

version: "3"

services:
  redis:
    image: redis:alpine
    restart: unless-stopped

  rabbit-mq:
    image: rabbitmq:alpine
    restart: unless-stopped

  jasmin:
    image: jookies/jasmin:0.10
    restart: unless-stopped
    container_name: jasmin
    volumes:
      - /var/log/jasmin:/var/log/jasmin
    ports:
      - 2775:2775
      - 8990:8990
      - 1401:1401
    depends_on:
      - redis
      - rabbit-mq
    environment:
      REDIS_CLIENT_HOST: redis
      AMQP_BROKER_HOST: rabbit-mq

Then spin it:

docker-compose up -d

This command will pull latest jasmin v0.10, latest redis and latest rabbitmq images to your computer:

# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
jasmin              latest              0e4cf8879899        36 minutes ago      478.6 MB

Jasmin is now up and running:

# docker ps
CONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS         PORTS                                                                    NAMES
1a9016d298bf   jookies/jasmin:0.10   "/docker-entrypoint.…"   3 seconds ago   Up 2 seconds   0.0.0.0:1401->1401/tcp, 0.0.0.0:2775->2775/tcp, 0.0.0.0:8990->8990/tcp   jasmin
af450de4fb95   rabbitmq:alpine       "docker-entrypoint.s…"   5 seconds ago   Up 3 seconds   4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp                      rabbitmq
c8feb6c07d94   redis:alpine          "docker-entrypoint.s…"   5 seconds ago   Up 3 seconds   6379/tcp                                                                 redis

Note

You can play around with the docker-compose.yml to choose different versions, mounting the configs outside the container, etc …

Sending your first SMS

For the really impatient, if you want to give Jasmin a whirl right now and send your first SMS, you’ll have to connect to Management CLI overview and setup a connection to your SMS-C, let’s assume you have the following SMPP connection parameters as provided from your partner:

Basic SMPP connection parameters
ParamaterDescriptionValue
HostHost of remote SMS-C172.16.10.67
PortSMPP port on remote SMS-C2775
UsernameAuthentication usernamesmppclient1
PasswordAuthentication passwordpassword
ThroughputMaximum sent SMS/second110

Note

In the next sections we’ll be heavily using jCli console, if you feel lost, please refer to Management CLI overview for detailed information.

1. Adding SMPP connection

Connect to jCli console through telnet (telnet 127.0.0.1 8990) using jcliadmin/jclipwd default authentication parameters and add a new connector with an CID=DEMO_CONNECTOR:

Authentication required.

Username: jcliadmin
Password:
Welcome to Jasmin console
Type help or ? to list commands.

Session ref: 2
jcli : smppccm -a
> cid DEMO_CONNECTOR
> host 172.16.10.67
> port 2775
> username smppclient1
> password password
> submit_throughput 110
> ok
Successfully added connector [DEMO_CONNECTOR]

2. Starting the connector

Let’s start the newly added connector:

jcli : smppccm -1 DEMO_CONNECTOR
Successfully started connector id:DEMO_CONNECTOR

You can check if the connector is bound to your provider by checking its log file (default to /var/log/jasmin/default-DEMO_CONNECTOR.log) or through jCli console:

jcli : smppccm --list
#Connector id                        Service Session          Starts Stops
#DEMO_CONNECTOR                      started BOUND_TRX        1      0
Total connectors: 1

3. Configure simple route

We’ll configure a default route to send all SMS through our newly created DEMO_CONNECTOR:

jcli : mtrouter -a
Adding a new MT Route: (ok: save, ko: exit)
> type defaultroute
jasmin.routing.Routes.DefaultRoute arguments:
connector
> connector smppc(DEMO_CONNECTOR)
> rate 0.00
> ok
Successfully added MTRoute [DefaultRoute] with order:0

4. Create a user

In order to use Jasmin’s HTTP API to send SMS messages, you have to get a valid user account, that’s what we’re going to do below.

First we have to create a group to put the new user in:

jcli : group -a
    Adding a new Group: (ok: save, ko: exit)
    > gid foogroup
    > ok
    Successfully added Group [foogroup]

And then create the new user:

jcli : user -a
Adding a new User: (ok: save, ko: exit)
> username foo
> password bar
> gid foogroup
> uid foo
> ok
Successfully added User [foo] to Group [foogroup]

5. Send SMS

Sending outbound SMS (MT) is simply done through Jasmin’s HTTP API (refer to HTTP API for detailed information about sending and receiving SMS and receipts):

http://127.0.0.1:1401/send?username=foo&password=bar&to=06222172&content=hello

Calling the above url from any brower will send an SMS to 06222172 with hello content, if you receive a response like the below example it means your SMS is accepted for delivery:

Success "9ab2867c-96ce-4405-b890-8d35d52c8e01"

For more troubleshooting about message delivery, you can check details in related log files in /var/log/jasmin:

Messaging related log files
Log filenameDescription
messages.logInformation about queued, rejected, received and sent messages
default-DEMO_CONNECTOR.logThe SMPP connector log file
번호
제목
글쓴이
JASMIN SMS Gateway how to send message
admin
18584   2022-01-04
JASMIN SMS Gateway how to send message https://docs.jasminsms.com/en/latest/installation/index.html#ubuntu InstallationThe Installation section is intended to get you up and running quickly with a simple SMS ...  
51 Nodejs smpp long message
admin
24333   2019-11-19
 
50 SMPP defines three modes of operation for an ESME: transmitter, receiver and transceiver.
admin
24314   2019-11-18
 
49 Receive sms over smpp did number
admin
25514   2019-11-18
 
48 ngrok으로 로컬 네트워크의 터널 열기
admin
24468   2019-11-17
 
47 How To Install Node.js on Debian 9
admin
30330   2019-11-15
 
46 How To Pass Command-Line Arguments to Node.js Program
admin
24362   2019-11-15
 
45 How to Install Latest Nodejs & NPM on Debian 10/9/8
admin
24233   2019-11-15
 
44 How to Install Yarn on Ubuntu, Debian & LinuxMint
admin
24323   2019-11-15
 
43 Jasmin smpp maanuall
admin
24092   2019-11-15
 
42 메세지수신방법
admin
24310   2019-11-06
 
41 파이썬에서 FCM을 보내보자.
admin
25206   2019-11-06
 
40 Mo vs MT 메세지 차이 설명
admin
25330   2019-11-05
 
39 Install apache ubuntu 18.04 phpmyadmin php mysql phpadmin apache command
admin
24382   2019-11-03
 
38 Keybase proof
admin
24440   2019-11-03
 
37 Jasmin smpp panel setup
admin
24329   2019-11-03
 
36 How to Install vTiger CRM on Ubuntu 18.04 LTS
admin
24093   2019-11-03
 
35 How To setup RocketChat Ubuntu 18.04
admin
24228   2019-11-03
 
34 특정파일로 앱 열기
admin
24754   2019-10-19
 
33 안드로이드 : 인 텐트를 통해 특정 폴더를 열고 파일 브라우저에 내용을 표시하는 방법?
admin
27724   2019-10-19
 
32 안드로이드 파일탐색
admin
24780   2019-10-19
 
31 android – 파일 대화 상자 선택
admin
24177   2019-10-19
 
30 안드로이드 파일 읽고 쓰기 동시에 하기
admin
24419   2019-10-19
 
29 안드로이드에서 텍스트(text) 파일 읽고 쓰기.
admin
24948   2019-10-19
 
28 안드로이드 내부 저장소 텍스트 파일 읽기 및 쓰기 한줄씩읽어오기 readline
admin
25302   2019-10-19
 
27 Android RecyclerView 요약 자세한 동작 설명
admin
24596   2019-10-14
 
26 Android Nine Patch Image Example
admin
24807   2019-10-14
 
25 Recyclerview chat
admin
24117   2019-10-13
 
24 RecyclerView Smooth Scroll Android Studio
admin
38569   2019-10-13
 
23 Android Working with Recycler View 리사이클러 뷰 안드로이드 초보 코딩
admin
24375   2019-10-12
 
22 안드로이드 앱 만들기 #34 파이어베이스 DB연동 리사이클러 뷰 (Firebase RecyclerView)
admin
24413   2019-10-11
 
21 Android Chat App Example Using RecyclerView
admin
23958   2019-10-08
 
20 Nine patch image 나인페치 이미지 설명 과 용도
admin
24193   2019-10-08
 
19 Android chat bubble list view
admin
23983   2019-10-08
 
18 안드로이드 리사이클러뷰 기본 사용법. (Android RecyclerView)
admin
26308   2019-10-08
 
17 안드로이드 채팅 앱 기초 Android Chat Tutorial: Building a Messaging UI
admin
24209   2019-10-08
 
16 Android Apps – Phone Calls and SMS
admin
24365   2019-10-06
 
15 RabbitMQ in 5 Minutes 보기만해도 저절로 이해되는 동영상
admin
38672   2019-10-05
 
14 Jasmin smpp doc
admin
24228   2019-08-04
 
13 Not able to receive DLR from SMPP - Jasmin
admin
23980   2019-08-04
 
12 Jasmin sms web interface - PowerSMPP
admin
24292   2019-08-04
 
11 Jasmin Documentation - Read the Docs smpp
admin
24205   2019-08-04
 
10 Node smpp
admin
24272   2019-08-03
 
9 Jasmin - Open source SMS gateway SMPP Client / Server HTTP Client / Server
admin
29553   2017-09-01
 
8 Installation Jasmin needs a working RabbitMQ and Redis servers
admin
37482   2017-09-01
 
7 playSMS 1.4 on CentOS 7.2 with MariaDB 5.5.50
admin
29578   2017-09-01
 
6 popular SMPP project
admin
28961   2017-08-19
 
5 Jasmin - Open source SMS gateway http://jasminsms.com
admin
29417   2017-08-19
 
4 open smpp
admin
29085   2017-08-19
 
3 Jasmin Gateway Open source SMS Gateway The message router
admin
37163   2017-08-19
 
2 Jasmin Gateway Open source SMS Gateway
admin
34701   2017-08-19
 
1 Inetlab.SMPP
admin
28650   2017-08-19