playSMS Forum

Issue connecting playsms with kannel

Hello,

I installed kannel some days ago and its working fine.

Now i have installed playsms 1.4.3, added config for kannel and when i send a message on playsms nothing shows in the logs kannel. i get the message “Your message has been delivered to queue (queued:1 failed:0)”

P.S. i am using fakesmsc from kannel for testing purpose.

below my kannel config :

CORE

group = core
admin-port = 13000
admin-password = playsms
status-password = playsms
wdp-interface-name = “*”
log-file = “/var/log/kannel/kannel.log”
log-level = 4
access-log = “/var/log/kannel/access.log”
smsbox-port = 13001
dlr-storage = mysql

SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13131
global-sender = 13013
log-file = “/var/log/kannel/smsbox.log”

#SMS SERVICE
group = sms-service
keyword = default
omit-empty = true
max-messages = 0
get-url = “…”

SENDING SMS

group = sendsms-user
username = playsms
password = playsms

SMSC

group = smsc
smsc = fake
smsc-id = smsc1
system-type = “VMA”
port = 10000
log-level = 0

################# MYSQL CONFIGURATION #############

SQL BOX CONFIG

Database connection examples. Please uncomment as needed

Example MYSQL Connection

DLR SETUP

#mysql connection
group = mysql-connection
id = mydlr
host = localhost
username = xxxxxx
password = xxxxxx
database = kannel

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

Can someone please help?

Playsms log after sending a message :

192.168.137.1 192.168.137.134 PID5f3d13d3c5544 - L2 init # WARNING: possible CSRF attack. sid:8bunsquhiv61vp3gcul1qf4dd5 ip:192.168.137.1
192.168.137.1 192.168.137.134 2020-08-19 07:58:11 PID5f3d13d3cbec5 admin L2 auth_block # WARNING: no access or blocked. sid:8bunsquhiv61vp3gcul1qf4dd5 ip:192.168.137.1 uid:1 app:main inc:core_auth op:block route:block
192.168.137.1 192.168.137.134 2020-08-19 07:58:34 PID5f3d13ea96951 admin L2 sendsms # start uid:1 sender_id:[1234] smsc:[]
192.168.137.1 192.168.137.134 2020-08-19 07:58:34 PID5f3d13ea96951 admin L2 sendsms_queue_create # saving queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 src:1234 scheduled:2020-08-19 07:58:34
192.168.137.1 192.168.137.134 2020-08-19 07:58:34 PID5f3d13ea96951 admin L2 sendsms_queue_create # saved queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 id:19
192.168.137.1 192.168.137.134 2020-08-19 07:58:34 PID5f3d13ea96951 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
192.168.137.1 192.168.137.134 2020-08-19 07:58:34 PID5f3d13ea96951 admin L2 sendsms_queue_push # saving queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 dst:23056548574
192.168.137.1 192.168.137.134 2020-08-19 07:58:34 PID5f3d13ea96951 admin L2 sendsms_queue_push # saved queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 smslog_id:21
192.168.137.1 192.168.137.134 2020-08-19 07:58:34 PID5f3d13ea96951 admin L2 sendsms # end queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsmsd # start processing queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 chunk:0 queue_count:1 sms_count:1 scheduled:2020-08-19 07:58:34 uid:1 gpid:0 sender_id:1234
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsmsd # sending queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 smslog_id:21 to:23056548574 sms_count:1 counter:1
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsms_process # start
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:23056548574 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsms # saving smslog_id:21 u:1 parent_uid:0 g:0 gw:kannel smsc:fake s:1234 d:23056548574 type:text unicode:0 status:0
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsms_process # saved smslog_id:21 id:21
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 simplerate_hook_rate_deduct # enter smslog_id:21
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 simplebilling_hook_billing_post # saving smslog_id:21 rate:0 count:1 charge:0
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 simplebilling_hook_billing_post # saved smslog_id:21 id:21
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsms_process # end
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsmsd # result queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 to:23056548574 flag:1 smslog_id:21
    • 2020-08-19 07:58:35 PID5f3d13eb4875c - L2 sendsmsd # finish processing queue_code:3d6e8e1d51b72cfcf290abf55aaf07c7 uid:1 sender_id:1234 queue_count:1 sms_count:1
    • 2020-08-19 07:58:35 PID5f3d0e291cd5a - L2 simplerate_hook_rate_refund # start smslog_id:21
    • 2020-08-19 07:58:35 PID5f3d0e291cd5a - L2 simplebilling__rollback # checking smslog_id:21
    • 2020-08-19 07:58:35 PID5f3d0e291cd5a - L2 simplebilling__rollback # saving smslog_id:21 id:21
    • 2020-08-19 07:58:35 PID5f3d0e291cd5a - L2 simplebilling__rollback # saved smslog_id:21

Hi,

Spend time to read and try this, maybe will help:

anton