How to Bind Multiple SMPP Acounts Using Kannel SMS Gateway.

Hi guys,
             Below I have written the script of complete kannel configuration in which I have binded the multiple SMPP accounts with mysql database. Please change your configuration according to your requirement. It is 100 % worked for me and hope it will work for you also.

# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
dlr-storage = mysql
log-file = "/var/log/kannel/kannel.log"
access-log = "/var/log/kannel/bearerbox-access.log"
access-log-clean = true
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs
# This is a fake smsc connection, _only_ used to test the system and services.
# It really cannot relay messages to actual handsets!

group = smsc
smsc = smpp
smsc-id = rx_tx_bind
speed=100000
interface-version=34
host= IP
port= port No.
receive-port= 6032
smsc-username = xxxx
smsc-password = savim
system-type = ""
transceiver-mode= true
source-addr-ton=5
source-addr-npi=1
dest-addr-ton=1
dest-addr-npi=1
max-pending-submits=10

group = smsc
smsc = smpp
smsc-id = rx_tx_bind
speed=100000
interface-version=34
host= IP
port= port no
receive-port= 8090
smsc-username = xxxx
smsc-password = savim
system-type = ""
transceiver-mode= true
source-addr-ton=5
source-addr-npi=1
dest-addr-ton=1
dest-addr-npi=1
max-pending-submits=10

# SMSBOX SETUP
#
# Smsbox do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
smsbox-id = dlrbox
global-sender = ABCD
bearerbox-host = "127.0.0.1"
sendsms-port = 13013
log-file = "/var/log/kannel/kannel_smsbox.log"
access-log = "/var/log/kannel/smsbox-access.log"
log-level = 0
mo-recode = true

group = smsbox
smsbox-id = dlrbox
global-sender = ABCD
bearerbox-host = "127.0.0.1"
sendsms-port = 13013
log-file = "/var/log/kannel/kannel_smsbox2.log"
access-log = "/var/log/kannel/smsbox-access2.log"
log-level = 0
mo-recode = true

# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=xyz

group = sendsms-user
username = xxxx
password = xxxx
dlr-url="http://IPadress:port/dlr.php?smscID=%i&user=xxxx&passwd=xxxx&type=%d&reply=%A&to=%p&receiver=%P&time=%t&smsID=%T&charset=%C&kannel_id=%I&message=%b"

# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

group = sms-service
keyword = SUB
text = "Invalid Keyword."


group = sms-service
keyword = default
get-url = "http://IPAdress:port/recsms.php?mobile=%p&scode=%k&msg=%b&user=xxxx&passwd=xxxx"
accept-x-kannel-headers = true
max-messages = 3
assume-plain-text = true
accepted-smsc = Fake
concatenation = true
catch-all = true

#MYSQL-CONNECTION
#
#In mysql-connection section only the db connection details are define
#by which the kannel is directly connected to the mysql database.
#
group = mysql-connection
id = mydlr
host = localhost
username = root
password = xxxx
database = kannel
max-connections = 20

#DLR_DB
#
#In dlr-db section the dlr table schema is defined in which delivery report is stored.
#
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc




Thanks.  :)

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hello

    I want to Install and configure the following

    Kannel 1.4.4 – Configure with two SMPP connection*, store the DLRs in MySQL database

    MySQL

    opensmppbox

    ReplyDelete
  3. Get SMPP SMSC Server and welcome the healthy smpp accessibility to send SMS in mass. This goes about as a spine of Bulk SMS business, without it any bulk SMS authority association can't change the traffic and can’t adjust up to various convenient executives.

    ReplyDelete
  4. usefull information for us SMPP Connection. . Keep Sharing

    ReplyDelete
  5. This post is really Helpful; it has helped me understand so many things. Thanks for the wonderful information. New Launch Info!

    ReplyDelete
  6. This post is really Helpful; it has helped me understand so many things. Thanks for the wonderful information. New Launch Info!

    ReplyDelete

Post a Comment

Popular posts from this blog

Window could not start the Apache tomcat 6 on Local Computer.For more information, review the System Events Logs.If this is a non-Microsoft service,contact service vendor, and refer to service-specific error code 0.

How to Read Excel File in VC++....

ORACLE DBA INTERVIEW QUESTION & ANSWERS