Playsms 1.3 with kannel 1.4.3 smsc (smpp) configuration

I used playsms 1.3 and kannel 1.4.3.

This is kannel.conf

group = core
admin-port = 13005
smsbox-port = 13009
admin-password = bar

log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log

box-deny-ip = "..."
box-allow-ip = “127.0.0.1”

SMSC CONNECTIONS SMPP

group = smsc
smsc = smpp
smsc-id = SMPP
interface-version=34
host = ...

receive-port =8888
smsc-username = playsms
smsc-password = playsms
system-type = EMPTY
log-file = /var/log/kannel/smsc-smpp.log
source-addr-ton = 5
source-addr-npi = 0
dest-addr-ton = 1
dest-addr-npi = 1
enquire-link-interval = 60
reconnect-delay = 10
throughput = 100

SMSBOX SETUP

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 18205
global-sender = 18205
sendsms-chars = "0123456789 ±"
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log

SEND-SMS USERS

group = sendsms-user
default-smsc = none
username = playsms
password = playsms
max-messages = 6
concatenation = true

SERVICES

group = sms-service
keyword = default
omit-empty = true
max-messages = 0
get-url = “http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i

I start bearerbox service and smsbox service using below cmd

/usr/sbin/bearerbox /etc/kannel/smsplaysms.conf &
/usr/sbin/smsbox /etc/kannel/smsplaysms.conf &

Two service successfully starting no error showing, status also running,but playsms kannel gateway kannel status showing re-connecting , i can not send sms. Please help me…

Thanks,

Kannel bearerbox
version 1.4.3'. BuildJul 8 2010 10:44:15’, compiler `4.4.4
20100525 (Red Hat 4.4.4-5)’. System Linux, release
2.6.32-573.7.1.el6.x86_64, version #1 SMP Tue Sep 22 22:00:00 UTC
2015, machine x86_64. Hostname vps54325.vps.ovh.ca, IP
158.69.195.174. Libxml version 2.7.6. Using OpenSSL 1.0.0-fips 29 Mar
2010. Using SQLite 3.6.20. Using native malloc.

Status: running,

uptime 0d 0h 3m 14s WDP: received 0 (0 queued), sent 0 (0 queued)

SMS: received 0 (0 queued), sent 0 (0 queued), store size -1 SMS:

inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec

DLR: 0 queued, using internal storage

Box connections:
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 2m 55s)

SMSC connections: SMPP
SMPP:ip ...:port/port:apexeeeinfo:EMTTPTY (re-connecting, rcvd 0,
sent 0, failed 0, queued 0 msgs)

You can see more info why its re-connecting in this log file:

anton

Thanks, for Your Reply…

I check This location /var/log/kannel/smsc-smpp.log ,frequently display showing error.

2015-10-07 15:07:38 [9880] [6] ERROR: connect failed
2015-10-07 15:07:38 [9880] [6] ERROR: System error 110: Connection timed out
2015-10-07 15:07:38 [9880] [6] ERROR: error connecting to server 000.000.00.11' at port0004’
2015-10-07 15:07:38 [9880] [6] ERROR: SMPP[SMPP:000.000.00.11:0004/0004:apex00pr0os:VMA]: Couldn’t connect to server.
2015-10-07 15:07:38 [9880] [6] ERROR: SMPP[SMPP:000.000.00.11:0004/0004:apexpr00os:VMA]: Couldn’t connect to SMS center (retrying in 10 seconds).

where is problem? playsms kannel gateway or my kannel.cof
I refer this url Play SMS with kannel and and one smpp

This is my kannel.conf

CORE

group = core
admin-port = 13000
admin-password = playsms
status-password = playsms
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-type = spool
store-location = /var/spool/kannel/store
smsbox-max-pending = 100

SMSBOX

group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+ "
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log
mo-recode = true

SMSC smpp1

group = smsc
smsc = smpp
smsc-id = smpp1
allowed-smsc-id = smpp1
preferred-smsc-id = smpp1
host = 000.000.00.11
port = 5004
transceiver-mode = yes
smsc-username = apex00pr0os
smsc-password = *****
system-type = "VMA"
log-file = /var/log/kannel/smsc-smpp1.log
log-level = 0

SMSC smpp2

group = smsc
smsc = smpp
smsc-id = smpp2
allowed-smsc-id = smpp2
preferred-smsc-id = smpp2
host = ***.*..82
port = 8056
receive-port = 8056
transceiver-mode = no
smsc-username = apede0d50x5info
smsc-password = ****
system-type = "EMPTY"
log-file = /var/log/kannel/smsc-smpp2.log
log-level = 0

SENDSMS-USER

group = sendsms-user
default-smsc = none
username = playsms
password = kannel
max-messages = 6
concatenation = true

SMS SERVICE

group = sms-service
keyword = default
omit-empty = true
max-messages = 0
get-url = “http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i

Your smpp server address (host) can’t be that, check again your access details with provider

Anton

Did you solve this issue?

I have the same problem that the kannel is connected the first time and for some reason (I dont know, loses the connection to the provider SMSC), and also in the log file send me this information (log file /var/log/kannel/smsc-smpp.log):

2016-07-08 17:51:20 [2200] [6] DEBUG: SMPP[smpp1]: Sending PDU:
2016-07-08 17:51:20 [2200] [6] DEBUG: SMPP PDU 0x7fba98000a40 dump:
2016-07-08 17:51:20 [2200] [6] DEBUG: type_name: bind_transceiver
2016-07-08 17:51:20 [2200] [6] DEBUG: command_id: 9 = 0x00000009
2016-07-08 17:51:20 [2200] [6] DEBUG: command_status: 0 = 0x00000000
2016-07-08 17:51:20 [2200] [6] DEBUG: sequence_number: 1 = 0x00000001
2016-07-08 17:51:20 [2200] [6] DEBUG: system_id: "SMSCHD"
2016-07-08 17:51:20 [2200] [6] DEBUG: password: "MVNOCHD"
2016-07-08 17:51:20 [2200] [6] DEBUG: system_type: "SMCHDRUI"
2016-07-08 17:51:20 [2200] [6] DEBUG: interface_version: 52 = 0x00000034
2016-07-08 17:51:20 [2200] [6] DEBUG: addr_ton: 1 = 0x00000001
2016-07-08 17:51:20 [2200] [6] DEBUG: addr_npi: 1 = 0x00000001
2016-07-08 17:51:20 [2200] [6] DEBUG: address_range: ""
2016-07-08 17:51:20 [2200] [6] DEBUG: SMPP PDU dump ends.
2016-07-08 17:51:20 [2200] [6] DEBUG: SMPP[smpp1]: Got PDU:
2016-07-08 17:51:20 [2200] [6] DEBUG: SMPP PDU 0x7fba98000ea0 dump:
2016-07-08 17:51:20 [2200] [6] DEBUG: type_name: bind_transceiver_resp
2016-07-08 17:51:20 [2200] [6] DEBUG: command_id: 2147483657 = 0x80000009
2016-07-08 17:51:20 [2200] [6] DEBUG: command_status: 13 = 0x0000000d
2016-07-08 17:51:20 [2200] [6] DEBUG: sequence_number: 1 = 0x00000001
2016-07-08 17:51:20 [2200] [6] DEBUG: system_id: "SMSC"
2016-07-08 17:51:20 [2200] [6] DEBUG: SMPP PDU dump ends.
2016-07-08 17:51:20 [2200] [6] ERROR: SMPP[smpp1]: SMSC rejected login to transmit, code 0x0000000d (Bind Failed).
2016-07-08 17:51:20 [2200] [6] ERROR: SMPP[smpp1]: I/O error or other error. Re-connecting.
2016-07-08 17:51:20 [2200] [6] ERROR: SMPP[smpp1]: Couldn’t connect to SMS center (retrying in 30 seconds).

I have been in contact with the provider for the SMS gateways messages, and he told me that I already connected, but kannel still reconnecting because lose the connection.

My configuration file containt this settings:

# CORE
group = core
admin-port = 13000
admin-password = 4dm1n
status-password = 4dm1n
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-type = spool
store-location = /var/spool/kannel/store
smsbox-max-pending = 100

# SMSBOX
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+ "
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log
mo-recode = true

## SMSC smpp1
group = smsc
smsc = smpp
smsc-id = smpp1
allowed-smsc-id = smpp1
preferred-smsc-id = smpp1
host = The IP of my provider (Tested and responds ping, and tcp connections)
port = The port of my provider (Tested and reciving connections on this port)
transceiver-mode = yes
smsc-username = smpp1
smsc-password = smpp1
system-type = ""
source-addr-ton = 4
source-addr-npi = 9
dest-addr-ton = 2
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
address-range = "VMA"
enquire-link-interval = 30
max-pending-submits = 2
reconnect-delay = 30
log-file = /var/log/kannel/smsc-smpp.log
log-level = 0

# SENDSMS-USER
group = sendsms-user
default-smsc = none
username = playsms
password = testing
max-messages = 6
concatenation = true

# SMS SERVICE
group = sms-service
keyword = default
omit-empty = true
max-messages = 0
get-url = “http://playsms.domain.com/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i

SMPP Connectivity issues can be easily solved using a wireshark to analyse and identify issues on the SMPP traffic. You might also look into the actual physical data connectivity between your the node (Kannel GW) and SMSC (Telco Operator) .