Hello,
am new here, I installed playSMS+kannel and all is running fine, i want to send SMS via GoIP Gateway which is hosted at the same network, I can ping it and my smpp port as well…
I setup Gateway Kannel in playSMS GUI like this :
this is kernal status :
Kannel bearerbox version
1.4.4'. Build
Apr 5 2016 13:30:36’, compiler `5.3.1 20160330’.
System Linux, release 4.4.0-142-generic, version #168-Ubuntu SMP Wed Jan 16 21:01:15 UTC 2019, machine i686.
Hostname ubuntu, IP 127.0.1.1.
Libxml version 2.9.3.
Using OpenSSL 1.0.2g 1 Mar 2016.
Compiled with MySQL 5.7.11, using MySQL 5.7.29.
Compiled with PostgreSQL 9.5.2.
Using SQLite 3.11.0.
Using hiredis API 0.13.3
Using native malloc.Status: going down, uptime 0d 1h 37m 30s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (0 queued), store size 0
SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/secDLR: received 0, sent 0
DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 0 queued, using internal storageNo boxes connected
SMSC connections:
smpp1[smpp1] SMPP:192.168.1.33:0/0:goip1: (connecting, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs)
gsm1[gsm1] AT2[gsm1] (dead, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs
here is my /var/log/kannel/smsc-smpp1.log
2020-04-25 00:56:00 [9368] [5] DEBUG: Connecting to <192.168.1.33>
2020-04-25 00:56:58 [9380] [5] DEBUG: Connecting to <192.168.1.33>
2020-04-25 00:56:58 [9380] [5] DEBUG: SMPP[smpp1]: Sending PDU:
2020-04-25 00:56:58 [9380] [5] DEBUG: SMPP PDU 0xb3d00518 dump:
2020-04-25 00:56:58 [9380] [5] DEBUG: type_name: bind_transceiver
2020-04-25 00:56:58 [9380] [5] DEBUG: command_id: 9 = 0x00000009
2020-04-25 00:56:58 [9380] [5] DEBUG: command_status: 0 = 0x00000000
2020-04-25 00:56:58 [9380] [5] DEBUG: sequence_number: 1 = 0x00000001
2020-04-25 00:56:58 [9380] [5] DEBUG: system_id: “goip1”
2020-04-25 00:56:58 [9380] [5] DEBUG: password: “1234321”
2020-04-25 00:56:58 [9380] [5] DEBUG: system_type: “VMA”
2020-04-25 00:56:58 [9380] [5] DEBUG: interface_version: 52 = 0x00000034
2020-04-25 00:56:58 [9380] [5] DEBUG: addr_ton: 0 = 0x00000000
2020-04-25 00:56:58 [9380] [5] DEBUG: addr_npi: 0 = 0x00000000
2020-04-25 00:56:58 [9380] [5] DEBUG: address_range: NULL
2020-04-25 00:56:58 [9380] [5] DEBUG: SMPP PDU dump ends.
2020-04-25 00:57:00 [9387] [5] DEBUG: Connecting to <192.168.1.33>
2020-04-25 00:57:50 [9427] [5] DEBUG: Connecting to <192.168.1.33>
2020-04-25 00:58:50 [9480] [5] DEBUG: Connecting to <192.168.1.33>
2020-04-25 00:58:50 [9488] [5] DEBUG: Connecting to <192.168.1.33>
here is
root@ubuntu:~# cat /etc/kannel/kannel.conf
CORE
group = core
admin-port = 13000
admin-password = enternet
status-password = enternet
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 = 192.168.1.33
#receive-port = 13131
port = 13131
transceiver-mode = yes
smsc-username = 06
smsc-password = 1234321
system-type = “VMA”
log-file = /var/log/kannel/smsc-smpp1.log
log-level = 1
SMSC gsm1
group = smsc
smsc = at
smsc-id = gsm1
allowed-smsc-id = gsm1
preferred-smsc-id = gsm1
my-number = 101
#allowed-prefix = “+62;62;0”
unified-prefix = “+62,62,0;+,00”
modemtype = wavecom
device = /dev/ttyUSB0
speed = 115200
#validityperiod = 143
sim-buffering = true
max-error-count = 5
log-file = /var/log/kannel/smsc-gsm1.log
log-level = 0
SMSC gsm2
#group = smsc
#smsc = at
#smsc-id = gsm2
#allowed-smsc-id = gsm2
#preferred-smsc-id = gsm2
#my-number = 102
##allowed-prefix = “+62;62;0”
#unified-prefix = “+62,62,0;+,00”
#modemtype = wavecom
#device = /dev/ttyUSB1
#speed = 115200
##validityperiod = 143
#sim-buffering = true
#max-error-count = 5
#log-file = /var/log/kannel/smsc-gsm2.log
#log-level = 0
group = modems
id = wavecom
message-storage = SM
need-sleep = true
sendline-sleep = 200
init-string = “AT+CNMI=2,2,0,1,0;+CMEE=1”
#reset-string = “AT+CFUN=1”
group = modems
id = huawei
message-storage = SM
need-sleep = true
sendline-sleep = 200
init-string = “AT+CNMI=2,2,0,1,0;+CMEE=1”
#reset-string = “AT+CFUN=1”
SENDSMS-USER
group = sendsms-user
default-smsc = none
username = playsms
password = KANNELSENDSMS_CHANGE_THIS
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”
here is my SMSC screenshot :
The SMS show in failed in sent message
Please help me
Regards,