playSMS Forum

PlaySMS With Kannel Install CentOS

Hello, i got the PlaySMS and the Kannel installed with SMPP to a GOIP Device. after few days reading and testing i can integrate both systems and send a sms to my cellphone, but when the sms is sent via PlaySMS, the SMS is marked as fail, but i received the sms in my phone.

can i have some help with this ??

here me kannel.conf

CORE CONFIG

group = core
admin-port = 14000
admin-password = "gilbert123"
status-password = "gilbert1234"
smsbox-port = 13001
log-file = "/var/log/kannel/bearerbox.log"
access-log = /var/log/kannel/access.log
log-level = 1
store-type = file
store-location = /var/log/kannel/kannel.store
box-allow-ip = "192.168.0.107"
box-allow-ip = "localhost"
store-type = file
store-location = “/var/log/kannel/kannel.store”

#SMSC smpp1
group = smsc
smsc = smpp
smsc-id = smpp1
allowed-smsc-id = smpp1
preferred-smsc-id = smpp1
host = HOSTIP
port = 7777
transceiver-mode = yes
smsc-username = ********
smsc-password = ********
system-type = "VMA"
log-file = "/var/log/kannel/smsc-smpp1.log"
log-level = 1
allowed-smsc-id = smpp1
preferred-smsc-id = smpp1
bind-addr-ton = 1
bind-addr-npi = 1

#SMSBOX SETUP
group = smsbox
smsbox-id = smpp1
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+"
global-sender = 1234
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = “/var/log/kannel/access.log”

#ROUTE
group = smsbox-route
smsbox-id = smpp1
smsc-id = “smpp1”

#SEND-SMS USERS
group = sendsms-user
username = playsms
password = playsms
user-allow-ip = loalhost
default-smsc = smpp1

#SMS SERVICE
group = sms-service
keyword = default
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"
accept-x-kannel-headers = true
max-messages = 1000
concatenation = true
catch-all = true
omit-empty = true
accepted-smsc = “smpp1”

#Forgot to put the access log

2016-03-05 16:54:11 send-SMS request added - sender:playsms:1234 127.0.0.1 target:19096382236 request: 'Hello , please hurry up, boss summons us ! @admin
2016-03-05 16:54:11 Sent SMS [SMSC:smpp1] [SVC:playsms] [ACT:admin] [BINF:] [FID:45508869] [from:1234] [to:19096382236] [flags:-1:0:-1:-1:27] [msg:49:Hello , please hurry up, boss summons us ! @admin] [udh:0:]
2016-03-05 16:54:11 Receive DLR [SMSC:smpp1] [SVC:playsms] [ACT:] [BINF:] [FID:45508869] [from:1234] [to:19096382236] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
2016-03-05 16:54:37 Receive DLR [SMSC:smpp1] [SVC:playsms] [ACT:] [BINF:] [FID:45508869] [from:1234] [to:19096382236] [flags:-1:-1:-1:-1:2] [msg:77:id:45508869 sub:5 dlvrd:5 submit date:1603060454 done date:1603060454 stat:ok] [udh:0:]
2016-03-05 16:57:19 send-SMS request added - sender:playsms:1234 127.0.0.1 target:19096382236 request: 'Hello , please hurry up, boss summons us ! @admin
2016-03-05 16:57:19 Sent SMS [SMSC:smpp1] [SVC:playsms] [ACT:admin] [BINF:] [FID:20497098] [from:1234] [to:19096382236] [flags:-1:0:-1:-1:27] [msg:49:Hello , please hurry up, boss summons us ! @admin] [udh:0:]
2016-03-05 16:57:19 Receive DLR [SMSC:smpp1] [SVC:playsms] [ACT:] [BINF:] [FID:20497098] [from:1234] [to:19096382236] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
2016-03-05 16:57:23 Receive DLR [SMSC:smpp1] [SVC:playsms] [ACT:] [BINF:] [FID:20497098] [from:1234] [to:19096382236] [flags:-1:-1:-1:-1:2] [msg:77:id:20497098 sub:6 dlvrd:6 submit date:1603060457 done date:1603060457 stat:ok] [udh:0:]
[root@kannel ~]#

#playsms log

192.168.0.102 192.168.0.107 2016-03-05 19:05:09 PID56db6625be5be admin L2 sendsms # start uid:1 sender_id:[1234] smsc:[]
192.168.0.102 192.168.0.107 2016-03-05 19:05:09 PID56db6625be5be admin L2 sendsms_queue_create # saving queue_code:3c31b0f5f826bdc07559721be281e395 src:1234 scheduled:2016-03-05 19:05:09
192.168.0.102 192.168.0.107 2016-03-05 19:05:09 PID56db6625be5be admin L2 sendsms_queue_create # saved queue_code:3c31b0f5f826bdc07559721be281e395 id:22
192.168.0.102 192.168.0.107 2016-03-05 19:05:09 PID56db6625be5be admin L2 sendsms # dst:1 sms_count:1 total_charges:0
192.168.0.102 192.168.0.107 2016-03-05 19:05:09 PID56db6625be5be admin L2 sendsms_queue_push # saving queue_code:3c31b0f5f826bdc07559721be281e395 dst:19096382236
192.168.0.102 192.168.0.107 2016-03-05 19:05:09 PID56db6625be5be admin L2 sendsms_queue_push # saved queue_code:3c31b0f5f826bdc07559721be281e395 smslog_id:22
192.168.0.102 192.168.0.107 2016-03-05 19:05:09 PID56db6625be5be admin L2 sendsms # end queue_code:3c31b0f5f826bdc07559721be281e395 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsmsd # start processing queue_code:3c31b0f5f826bdc07559721be281e395 chunk:0 queue_count:1 sms_count:1 scheduled:2016-03-05 19:05:09 uid:1 gpid:0 sender_id:1234
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsmsd # sending queue_code:3c31b0f5f826bdc07559721be281e395 smslog_id:22 to:19096382236 sms_count:1 counter:1
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsms_process # start
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 simplerate__cansend # allowed user uid:1 sms_to:19096382236 credit:0.000 count:1 rate: charge:0 balance:0
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsms # saving smslog_id:22 u:1 g:0 gw:kannel smsc:kannel s:1234 d:19096382236 type:text unicode:0 status:0
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsms_process # saved smslog_id:22 id:22
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 simplerate__deduct # enter smslog_id:22
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 credit_hook_rate_setusercredit # no changes uid:1 balance:0
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:22 msglen:49 count:1 rate: charge:0 credit:0.000 balance:0
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 simplebilling__post # saving smslog_id:22 rate: credit:0.000 count:1 charge:0
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 simplebilling__post # saved smslog_id:22 id:22
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsms_process # end
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsmsd # result queue_code:3c31b0f5f826bdc07559721be281e395 to:19096382236 flag:1 smslog_id:22
    • 2016-03-05 19:05:10 PID56db6626445cc - L2 sendsmsd # finish processing queue_code:3c31b0f5f826bdc07559721be281e395 uid:1 sender_id:1234 queue_count:1 sms_count:1
      127.0.0.1 localhost 2016-03-05 19:05:10 PID56db6626753ac - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
      127.0.0.1 localhost 2016-03-05 19:05:10 PID56db6626753ac - L2 kannel__call # end load dlr
    • 2016-03-05 19:05:10 PID56db10ac56fbf - L2 simplebilling__finalize # saving smslog_id:22
    • 2016-03-05 19:05:10 PID56db10ac56fbf - L2 simplebilling__finalize # saved smslog_id:22
      127.0.0.1 localhost 2016-03-05 19:05:14 PID56db662a89f65 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
      127.0.0.1 localhost 2016-03-05 19:05:14 PID56db662a89f65 - L2 kannel__call # end load dlr

You find a solution?

I have a unit from China skyline sk 2g 4-4 and search for a way to get it work with playsms