Playsms 1.3.1 with kannel 1.4.3 can't send sms

Hello everybody,

I installed playsms 1.3.1 with kannel 1.4.3 for my company.
I can send sms from kannel(without playsms) with command line but after configuring kannel for playsms, sms is queued and never send.
can you help me ?

ps: sorry for my english i’m french.

this is all my config

#–KANNEL–

#---- CORE GROUP
group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "..."
admin-allow-ip = "..."
wdp-interface-name = ""
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "
...*"
box-allow-ip = "127.0.0.1"
access-log = "/var/log/kannel/core-access.log"
smsbox-port=13004
dlr-storage = mysql
store-file = /var/log/kannel/kannel.store

#— mysql connection

group = mysql-connection
id = mydlr
host = localhost
port = 3306
username = root
password = digicel
database = kannel
max-connections = 1

##---- DLR table structure
##all tables was created

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

---- SMSC

group = smsc
smsc = smpp
host = 172.24.24.236
port = 7661
receive-port = 7
smsc-username = "sup"
smsc-password = digisup
system-type = "smpp"
send-url = http://localhost:14000/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q
address-range = ""
my-number = 93555
source-addr-ton = 0
source-addr-npi = 0
service-type = 0
log-level = 0

##---- SMSBOX
group = smsbox
bearerbox-host = localhost
sendsms-port = 14000
global-sender =93555
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/smsbox-access.log"
log-level = 1

##SENDSMS
group = sendsms-user
username = test
password = test

##SMS SERVICE
group = sms-service
keyword = default
accept-x-kannel-headers = true
max-messages = 10
assume-plain-text = true
catch-all = true

#–LOG–

##PLAYSMS.LOG

  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms # start uid:1 sender_id:[admin] smsc:[]
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 sendsms # maxlen:459 footerlen:0 footer:[] msglen:26 message:[Hi u there, good morning!!]
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_create # saving queue_code:6f59e18e28c21eec712bbf5088440ac3 src:admin scheduled:2016-02-16 11:27:05
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_create # saved queue_code:6f59e18e28c21eec712bbf5088440ac3 id:11
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[06********]
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[06********]
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:06******** default_rate:0
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:26 unicode:0 to:06******** enable_credit_unicode:1 count:1 rate: charge:0
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms # dst:1 sms_count:1 total_charges:0
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_push # saving queue_code:6f59e18e28c21eec712bbf5088440ac3 dst:06********
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_push # saved queue_code:6f59e18e28c21eec712bbf5088440ac3 smslog_id:11
  • 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms # end queue_code:6f59e18e28c21eec712bbf5088440ac3 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:2
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # start processing queue_code:6f59e18e28c21eec712bbf5088440ac3 chunk:0 queue_count:1 sms_count:1 scheduled:2016-02-16 11:57:05 uid:1 gpid:0 sender_id:admin
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # sending queue_code:6f59e18e28c21eec712bbf5088440ac3 smslog_id:11 to:06******** sms_count:1 counter:1
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_intercept # msgtemplate modified sms_sender:[admin] sms_footer:[] sms_to:[06********] sms_msg:[Hi u there, good morning!!] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[6f59e18e28c21eec712bbf5088440ac3] smsc:[]
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:admin to:06********
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms_process # start
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getbyprefix # rate not found to:06******** default_rate:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:26 unicode:0 to:06******** enable_credit_unicode:1 count:1 rate: charge:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplerate__cansend # allowed user uid:1 sms_to:06******** credit:10.000 count:1 rate: charge:0 balance:10
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms # saving smslog_id:11 u:1 g:0 gw:kannel smsc:kannel s:admin d:06******** type:text unicode:0 status:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms_process # saved smslog_id:11 id:11
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms # final smslog_id:11 gw:kannel smsc:kannel message:Hi u there, good morning!! len:26
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:11 uid:1 to:06********
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 dlr # isdlrd:1 smslog_id:11 p_status:2 uid:1
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 kannel__outgoing # end smslog_id:11 p_status:2
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplerate__deduct # enter smslog_id:11
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getbyprefix # rate not found to:06******** default_rate:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:26 unicode:0 to:06******** enable_credit_unicode:1 count:1 rate: charge:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 credit_hook_rate_setusercredit # no changes uid:1 balance:10
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:11 msglen:26 count:1 rate: charge:0 credit:10.000 balance:10
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplebilling__post # saving smslog_id:11 rate: credit:10.000 count:1 charge:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplebilling__post # saved smslog_id:11 id:33
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate__deduct # deduct successful uid:1 parent_uid: smslog_id:11
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate__deduct # credit_lowest_limit:0 balance:10 charge:0
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms_process # end
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_throttle_count # throttle bucket exists start:2016-02-16 11:13:46 sum:2 limit:1000
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # result queue_code:6f59e18e28c21eec712bbf5088440ac3 to:06******** flag:1 smslog_id:11
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:3
      • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # finish processing queue_code:6f59e18e28c21eec712bbf5088440ac3 uid:1 sender_id:admin queue_count:1 sms_count:1
      • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L3 dlrd # id:33 smslog_id:11 p_status:2 uid:1
      • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L2 simplerate__refund # start smslog_id:11
      • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L2 simplebilling__rollback # checking smslog_id:11
      • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L2 simplebilling__rollback # saving smslog_id:11 id:10
      • 2016-02-16 11:59:59 PID56c33c7e48ddc - L3 report_hook_playsmsd # login session removed uid:1 hash:ff48540b6b1bf464c706962baeff3e59

##Bearerbx.log

2016-02-16 11:57:16 [21441] [6] DEBUG: SMPP[SMPP:172.24.24.236:7661/7661:sup:smpp]: Sending enquire link:
2016-02-16 11:57:16 [21441] [6] DEBUG: SMPP PDU 0x7f35f8001700 dump:
2016-02-16 11:57:16 [21441] [6] DEBUG: type_name: enquire_link
2016-02-16 11:57:16 [21441] [6] DEBUG: command_id: 21 = 0x00000015
2016-02-16 11:57:16 [21441] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-16 11:57:16 [21441] [6] DEBUG: sequence_number: 2214 = 0x000008a6
2016-02-16 11:57:16 [21441] [6] DEBUG: SMPP PDU dump ends.
2016-02-16 11:57:16 [21441] [6] DEBUG: SMPP[SMPP:172.24.24.236:7661/7661:sup:smpp]: Got PDU:
2016-02-16 11:57:16 [21441] [6] DEBUG: SMPP PDU 0x7f35f8001700 dump:
2016-02-16 11:57:16 [21441] [6] DEBUG: type_name: enquire_link_resp
2016-02-16 11:57:16 [21441] [6] DEBUG: command_id: 2147483669 = 0x80000015
2016-02-16 11:57:16 [21441] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-16 11:57:16 [21441] [6] DEBUG: sequence_number: 2214 = 0x000008a6
2016-02-16 11:57:16 [21441] [6] DEBUG: SMPP PDU dump ends.
2016-02-16 11:57:46 [21441] [6] DEBUG: SMPP[SMPP:172.24.24.236:7661/7661:sup:smpp]: Sending enquire link:
2016-02-16 11:57:46 [21441] [6] DEBUG: SMPP PDU 0x7f35f8001700 dump:
2016-02-16 11:57:46 [21441] [6] DEBUG: type_name: enquire_link
2016-02-16 11:57:46 [21441] [6] DEBUG: command_id: 21 = 0x00000015
2016-02-16 11:57:46 [21441] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-16 11:57:46 [21441] [6] DEBUG: sequence_number: 2215 = 0x000008a7
2016-02-16 11:57:46 [21441] [6] DEBUG: SMPP PDU dump ends.
2016-02-16 11:57:46 [21441] [6] DEBUG: SMPP[SMPP:172.24.24.236:7661/7661:sup:smpp]: Got PDU:
2016-02-16 11:57:46 [21441] [6] DEBUG: SMPP PDU 0x7f35f8001700 dump:
2016-02-16 11:57:46 [21441] [6] DEBUG: type_name: enquire_link_resp
2016-02-16 11:57:46 [21441] [6] DEBUG: command_id: 2147483669 = 0x80000015
2016-02-16 11:57:46 [21441] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-16 11:57:46 [21441] [6] DEBUG: sequence_number: 2215 = 0x000008a7
2016-02-16 11:57:46 [21441] [6] DEBUG: SMPP PDU dump ends.
2016-02-16 11:58:16 [21441] [6] DEBUG: SMPP[SMPP:172.24.24.236:7661/7661:sup:smpp]: Sending enquire link:

#smsbox:log

2016-02-16 11:57:06 [21456] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
2016-02-16 11:57:06 [21456] [3] INFO: sendsms used by
2016-02-16 11:57:06 [21456] [3] INFO: sendsms sender:test:admin (127.0.0.1) to:<06********> msg:<Hi u there, good morning!!>

Whats your log state under Reports–> view Log
is the icon green or anyother colour?

Hello akay,

sorry for the late and thank’s for your help.

the icon is green as you can see :

and here is my log :

172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms # start uid:1 sender_id:[admin] smsc:
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 sendsms # maxlen:459 footerlen:0 footer: msglen:26 message:[Hi u there, good morning!!]
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_create # saving queue_code:6f59e18e28c21eec712bbf5088440ac3 src:admin scheduled:2016-02-16 11:27:05
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_create # saved queue_code:6f59e18e28c21eec712bbf5088440ac3 id:11
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[06********]
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[06********]
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:06******** default_rate:0
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:26 unicode:0 to:06******** enable_credit_unicode:1 count:1 rate: charge:0
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms # dst:1 sms_count:1 total_charges:0
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_push # saving queue_code:6f59e18e28c21eec712bbf5088440ac3 dst:06********
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms_queue_push # saved queue_code:6f59e18e28c21eec712bbf5088440ac3 smslog_id:11
172.24.21.140 172.24.24.31 2016-02-16 11:57:05 PID56c346d1c1ba7 admin L2 sendsms # end queue_code:6f59e18e28c21eec712bbf5088440ac3 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:2
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # start processing queue_code:6f59e18e28c21eec712bbf5088440ac3 chunk:0 queue_count:1 sms_count:1 scheduled:2016-02-16 11:57:05 uid:1 gpid:0 sender_id:admin
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # sending queue_code:6f59e18e28c21eec712bbf5088440ac3 smslog_id:11 to:06******** sms_count:1 counter:1
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_intercept # msgtemplate modified sms_sender:[admin] sms_footer: sms_to:[06********] sms_msg:[Hi u there, good morning!!] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[6f59e18e28c21eec712bbf5088440ac3] smsc:
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:admin to:06********
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms_process # start
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getbyprefix # rate not found to:06******** default_rate:0
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:26 unicode:0 to:06******** enable_credit_unicode:1 count:1 rate: charge:0
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplerate__cansend # allowed user uid:1 sms_to:06******** credit:10.000 count:1 rate: charge:0 balance:10
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms # saving smslog_id:11 u:1 g:0 gw:kannel smsc:kannel s:admin d:06******** type:text unicode:0 status:0
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms_process # saved smslog_id:11 id:11
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms # final smslog_id:11 gw:kannel smsc:kannel message:Hi u there, good morning!! len:26
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:11 uid:1 to:06********
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 dlr # isdlrd:1 smslog_id:11 p_status:2 uid:1
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 kannel__outgoing # end smslog_id:11 p_status:2
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplerate__deduct # enter smslog_id:11
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getbyprefix # rate not found to:06******** default_rate:0
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:26 unicode:0 to:06******** enable_credit_unicode:1 count:1 rate: charge:0
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 credit_hook_rate_setusercredit # no changes uid:1 balance:10
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:11 msglen:26 count:1 rate: charge:0 credit:10.000 balance:10
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplebilling__post # saving smslog_id:11 rate: credit:10.000 count:1 charge:0
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 simplebilling__post # saved smslog_id:11 id:33
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate__deduct # deduct successful uid:1 parent_uid: smslog_id:11
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 simplerate__deduct # credit_lowest_limit:0 balance:10 charge:0
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsms_process # end
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_throttle_count # throttle bucket exists start:2016-02-16 11:13:46 sum:2 limit:1000
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # result queue_code:6f59e18e28c21eec712bbf5088440ac3 to:06******** flag:1 smslog_id:11
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:3
    • 2016-02-16 11:57:06 PID56c346d2b4e19 - L2 sendsmsd # finish processing queue_code:6f59e18e28c21eec712bbf5088440ac3 uid:1 sender_id:admin queue_count:1 sms_count:1
    • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L3 dlrd # id:33 smslog_id:11 p_status:2 uid:1
    • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L2 simplerate__refund # start smslog_id:11
    • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L2 simplebilling__rollback # checking smslog_id:11
    • 2016-02-16 11:57:07 PID56c33c7e4a5a7 - L2 simplebilling__rollback # saving smslog_id:11 id:10
    • 2016-02-16 11:59:59 PID56c33c7e48ddc - L3 report_hook_playsmsd # login session removed uid:1 hash:ff48540b6b1bf464c706962baeff3e59

hey
ok thats fine

now tel me how have you added kannel to playsms
are u able to access kannel admin commands?
under settings --> manage gateways and smsc

Hello !

yes i have access to admin command :

I installed Kannel first, and it sends Sms with its basic url, then playsms.

here it is my gateway config :

i added a smsc named kannel with that config :

hello juste a little Up !

Ur sender id seems to be right…I mean less than 11 chars…
May b @anton could help…here…
Whats ur default smpp ?

hello @akay ,

i have two smpp one TX and one RX:

Tx :
group = smsc
smsc = smpp
host = 172.24.24.236
port = 7661
#transceiver-mode = true
smsc-id = smsc1
denied-smsc-id = smsc2
allowed-smsc-id = smsc1
#receive-port =
smsc-username = "sup"
smsc-password = digisup
system-type = "smpp"
send-url = http://localhost:14000/playsms/index.php?app=call&cat=gateway&p$
#send-url = http://localhost:14000/cgi-bin/sendsms
address-range = ""
my-number = 93555
source-addr-ton = 0
source-addr-npi = 0
service-type = 0
log-level = 0
log-file = /var/log/kannel/smsc-smpp1.log
#allowed-smsc-id = smsc1

and RX :

group = smsc
smsc = smpp
host = 172.24.24.236
port = 7661
#transceiver-mode = yes
smsc-id = smsc2
#denied-smsc-id = smsc1
#allowed-smsc-id = smsc2
receive-port = 7661
smsc-username = "sup"
smsc-password = digisup
system-type = “smpp”
#send-url = http://localhost:14000/playsms/index.php?app=call&cat=gateway&$
#send-url = http://localhost:14000/cgi-bin/sendsms
#address-range = “”
#my-number = 93555
#source-addr-ton = 0
#source-addr-npi = 0
#service-type = 0
log-level = 0
log-file = /var/log/kannel/smsc-smpp2.log
allowed-smsc-id = smsc2