Kannel starting but no ports being opened


(Tshering Dhendup) #1

Dear All/Experts,

I have installed kannel on Ubuntu server. I checked the working of the process and it gives me the following

kannel.service - LSB: SMS and WAP gateway
Loaded: loaded (/etc/init.d/kannel; bad; vendor preset: enabled)
Active: active (running) since Thu 2018-07-19 15:33:06 +06; 4min 18s ago
Docs: man:systemd-sysv-generator(8)
Process: 1831 ExecStart=/etc/init.d/kannel start (code=exited, status=0/SUCCESS)
Tasks: 2
Memory: 8.2M
CPU: 241ms
CGroup: /system.slice/kannel.service
├─1897 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args /usr/sbin/bearerbox -v 4 – /etc/kannel/kannel.c…
└─1916 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid --no-extra-args /usr/sbin/smsbox -v 4 – /etc/kannel/kannel.conf

Jul 19 15:33:05 smsgateway systemd[1]: Starting LSB: SMS and WAP gateway…
Jul 19 15:33:05 smsgateway kannel[1831]: * Starting WAP gateway
Jul 19 15:33:06 smsgateway kannel[1831]: …done.
Jul 19 15:33:06 smsgateway systemd[1]: Started LSB: SMS and WAP gateway.

However, when I check the ports

netstat -tupln

I dont’ get any of the ports being opened. Please help

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1778/sshd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1848/mysqld
tcp6 0 0 :::22 :::* LISTEN 1778/sshd
tcp6 0 0 :::80 :::* LISTEN 1911/apache2

I have the following configuration in kannel.conf

group = core
admin-port = 14000
admin-password = admin
admin-deny-ip = “...
admin-allow-ip = “127.0.0.1”
smsbox-port = 14002
wapbox-port = 14003


(Steven Delport) #2

Firewall maybe ? disable and restart kannel to test.
tcp 0 0 0.0.0.0:13031 0.0.0.0:* LISTEN 8035/smsbox
tcp 0 0 0.0.0.0:13000 0.0.0.0:* LISTEN 8018/bearerbox
tcp 0 0 0.0.0.0:13001 0.0.0.0:* LISTEN 8018/bearerbox


(Tshering Dhendup) #3

Dear Steven,

I could eventually solve the very issue. However, I could not send/receive sms. Please help me. The playsms and Kannel is somehow connected. Let me share your the following/configurations:
kannel.conf

group = core
admin-port = 14000
smsbox-port = 14001
admin-password = admin
status-password = admin
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
dlr-storage = internal
store-type = file
group = smsc
smsc = smpp
smsc-id = sms11
smsc-username = sms11
smsc-password = xyz
system-type = smpp
host = x.y.z.a
port = 9000
connect-allow-ip = 127.0.0.1
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 14002
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsbox-access.log"
#Playsms
group = sendsms-user
username = admin
password = admin
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;"

Playsms Logs

_sms:0
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsmsd # start processing queue_code:b2cd6066c69386792165032bdec3841e chunk:0 queue_count:1 sms_count:1 scheduled:2018-07-19 11:51:55
 uid:1 gpid:0 sender_id:1600
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsmsd # sending queue_code:b2cd6066c69386792165032bdec3841e smslog_id:25 to:97517862317 sms_count:1 counter:1
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 recvsms_process # using default SMSC smsc:[kannel]
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsms_process # start
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:97517862317 adhoc_credit:1000 count:1 rate: charge:0 adhoc_balance:1000
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsms # saving smslog_id:25 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:1600 d:97517862317 type:text unicode:0 status:0
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsms_process # saved smslog_id:25 id:25
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 simplerate_hook_rate_deduct # enter smslog_id:25
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 simplebilling_hook_billing_post # saving smslog_id:25 rate: count:1 charge:0
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 simplebilling_hook_billing_post # saved smslog_id:25 id:25
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsms_process # end
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsmsd # result queue_code:b2cd6066c69386792165032bdec3841e to:97517862317 flag:1 smslog_id:25
- - 2018-07-19 11:51:56 PID5b507b5bedaba - L2 sendsmsd # finish processing queue_code:b2cd6066c69386792165032bdec3841e uid:1 sender_id:1600 queue_count:1 sms_count:1
192.168.130.233 192.168.96.23 2018-07-19 11:52:12 PID5b507b6cc9083 admin L2 logout # u:admin uid:1 status:2 sid:4tueedmf8kroh1cmdec285cg32 ip:192.168.130.233
192.168.130.233 192.168.96.23 2018-07-19 11:52:17 PID5b507b7135667 - L2 auth_validate_login # valid login u:admin uid:1 ip:192.168.130.233
192.168.130.233 192.168.96.23 2018-07-19 11:52:17 PID5b507b7135667 - L2 login # u:admin uid:1 status:2 sid:4tueedmf8kroh1cmdec285cg32 ip:192.168.130.233
192.168.130.233 192.168.96.23 2018-07-19 11:52:19 PID5b507b7337a2d admin L2 logout # u:admin uid:1 status:2 sid:4tueedmf8kroh1cmdec285cg32 ip:192.168.130.233
192.168.130.233 192.168.96.23  PID5b514f6fd8085 - L2 init # WARNING: possible CSRF attack. sid: ip:192.168.130.233
192.168.130.233 192.168.96.23 2018-07-20 02:56:53 PID5b514f7518357 - L2 auth_validate_login # valid login u:admin uid:1 ip:192.168.130.233
192.168.130.233 192.168.96.23 2018-07-20 02:56:53 PID5b514f7518357 - L2 login # u:admin uid:1 status:2 sid:4tueedmf8kroh1cmdec285cg32 ip:192.168.130.233

Bearerbox.log

2018-07-19 17:49:10 [6496] [6] ERROR: SMPP[sms11]: SMSC rejected login to transmit, code 0x0000000f (Invalid System ID).
2018-07-19 17:49:10 [6496] [6] DEBUG: SMSCConn SMPP:119.2.115.41:9000/0:sms11:smpp shut down.
2018-07-19 17:49:10 [6496] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) terminates.
2018-07-19 17:49:11 [6496] [5] INFO: Client connected from <127.0.0.1>
2018-07-19 17:49:11 [6496] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
2018-07-19 17:49:11 [6496] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 6496.
2018-07-19 17:49:11 [6496] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender)
2018-07-19 17:49:11 [6496] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 6496.
2018-07-19 17:49:49 [6496] [5] INFO: Box connection tried from denied host <192.168.96.23>, disconnected
2018-07-19 17:49:49 [6496] [5] ERROR: Failed to create new boxc connection.
2018-07-19 17:50:04 [6496] [5] INFO: Box connection tried from denied host <192.168.96.23>, disconnected
2018-07-19 17:50:04 [6496] [5] ERROR: Failed to create new boxc connection.
2018-07-19 17:50:13 [6496] [5] INFO: Box connection tried from denied host <192.168.96.23>, disconnected
2018-07-19 17:50:13 [6496] [5] ERROR: Failed to create new boxc connection.
2018-07-19 17:51:56 [6496] [5] INFO: Box connection tried from denied host <192.168.96.23>, disconnected
2018-07-19 17:51:56 [6496] [5] ERROR: Failed to create new boxc connection.
2018-07-19 18:49:08 [6496] [7] DEBUG: clear_old_concat_parts called
2018-07-19 19:49:06 [6496] [7] DEBUG: clear_old_concat_parts called

Please help me .


(Steven Delport) #4

SMSC rejected login to transmit, code 0x0000000f (Invalid System ID).
check with your service provider seems like an authentication error.
also check that you can connect from your server to the smpp provider as most of them have firewalls.


(Tshering Dhendup) #5

Dear Steven,

Thank You. I could solve the very issue by defining transceiver-mode=yes in kannel.conf file.

However, I still get the issue of messages from playsms not sending to the number. The status changes to ‘yellow’ saying its ‘pending’ then to ‘red’ as ‘failed’. I am sharing you the logs as follows:

 - 2018-07-20 07:42:51 PID5b51927b391b9 - L2 sendsmsd # start processing queue_code:d2bb85d73f946f7bd9e052fcbbe85333 chunk:0 queue_count:1 sms_count:1 scheduled:2018-07-20 07:42:48 uid:1 gpid:0 sender_id:1600
- - 2018-07-20 07:42:51 PID5b51927b391b9 - L2 sendsmsd # sending queue_code:d2bb85d73f946f7bd9e052fcbbe85333 smslog_id:49 to:17141707 sms_count:1 counter:1
- - 2018-07-20 07:42:51 PID5b51927b391b9 - L2 recvsms_process # using default SMSC smsc:[kannel]
- - 2018-07-20 07:42:51 PID5b51927b391b9 - L2 sendsms_process # start
- - 2018-07-20 07:42:51 PID5b51927b391b9 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:17141707 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2018-07-20 07:42:51 PID5b51927b391b9 - L2 sendsms # saving smslog_id:49 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:1600 d:17141707 type:text unicode:0 status:0
- - 2018-07-20 07:42:51 PID5b51927b391b9 - L2 sendsms_process # saved smslog_id:49 id:50
- - 2018-07-20 07:44:34 PID5b51927b391b9 - L2 simplerate_hook_rate_deduct # enter smslog_id:49
- - 2018-07-20 07:44:34 PID5b51927b391b9 - L2 simplebilling_hook_billing_post # saving smslog_id:49 rate: count:1 charge:0
- - 2018-07-20 07:44:34 PID5b51927b391b9 - L2 simplebilling_hook_billing_post # saved smslog_id:49 id:36
- - 2018-07-20 07:44:34 PID5b51927b391b9 - L2 sendsms_process # end
- - 2018-07-20 07:44:34 PID5b51927b391b9 - L2 sendsmsd # result queue_code:d2bb85d73f946f7bd9e052fcbbe85333 to:17141707 flag:1 smslog_id:49
- - 2018-07-20 07:44:34 PID5b51927b391b9 - L2 sendsmsd # finish processing queue_code:d2bb85d73f946f7bd9e052fcbbe85333 uid:1 sender_id:1600 queue_count:1 sms_count:1

Please help.


(Anton Raharja) #6

set loglevel to 3 on config.php, restart playsmsd and test again

anton


(Tshering Dhendup) #7

Dear Anton,

Thank you for your kind response.

Well now the logs give me the following

- 2018-07-20 09:08:23 PID5b51a5062f5c8 - L2 sendsmsd # result queue_code:2f67546cfdf0ce38c46be04c1dd2d7e7 to:97517112050 flag:1 smslog_id:52
- - 2018-07-20 09:08:23 PID5b51a476972f6 - L2 sendsmsd # result queue_code:845e40056ff3253a1cbe3d011699e5e2 to:17112050 flag:1 smslog_id:50
- - 2018-07-20 09:08:23 PID5b51a47cdf9c6 - L2 sendsmsd # result queue_code:bb246f92334463f0cfe5d70a2794eb15 to:17862317 flag:1 smslog_id:51
- - 2018-07-20 09:08:23 PID5b51a476972f6 - L2 sendsmsd # finish processing queue_code:845e40056ff3253a1cbe3d011699e5e2 uid:1 sender_id:1600 queue_count:1 sms_count:1
- - 2018-07-20 09:08:23 PID5b51a5062f5c8 - L2 sendsmsd # finish processing queue_code:2f67546cfdf0ce38c46be04c1dd2d7e7 uid:1 sender_id:1600 queue_count:1 sms_count:1
- - 2018-07-20 09:08:23 PID5b51a47cdf9c6 - L2 sendsmsd # finish processing queue_code:bb246f92334463f0cfe5d70a2794eb15 uid:1 sender_id:1600 queue_count:1 sms_count:1
192.168.96.23 192.168.96.23 2018-07-20 09:08:33 PID5b51a691d637a - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:08:33 PID5b51a691d637a - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:08:49 PID5b51a6a100abe - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:08:49 PID5b51a6a100abe - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:09:57 PID5b51a6e4f33c2 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:09:57 PID5b51a6e4f33c2 - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:10:31 PID5b51a706f1cd4 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:10:31 PID5b51a706f1cd4 - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:10:31 PID5b51a70715dbe - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:10:31 PID5b51a70715dbe - L2 kannel__incoming # missing parameter t:[2018-07-20 09:10:31] q:[+97517681530] a:[] smsc:[]
192.168.96.23 192.168.96.23 2018-07-20 09:10:31 PID5b51a70715dbe - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:12:41 PID5b51a7891cf5a - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:12:41 PID5b51a7891cf5a - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:12:56 PID5b51a79821b73 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:12:56 PID5b51a79821b73 - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:13:35 PID5b51a7bf53424 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:13:35 PID5b51a7bf53424 - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:14:00 PID5b51a7d82afca - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:14:00 PID5b51a7d82afca - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:15:51 PID5b51a84728ef7 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:15:51 PID5b51a84728ef7 - L2 kannel__incoming # missing parameter t:[2018-07-20 09:15:51] q:[+97517682405] a:[] smsc:[]
192.168.96.23 192.168.96.23 2018-07-20 09:15:51 PID5b51a84728ef7 - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:16:17 PID5b51a8613fc0e - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:16:17 PID5b51a8613fc0e - L2 kannel__call # end load geturl
192.168.96.23 192.168.96.23 2018-07-20 09:16:28 PID5b51a86c36d7d - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php
192.168.96.23 192.168.96.23 2018-07-20 09:16:28 PID5b51a86c36d7d - L2 kannel__call # end load geturl

Regards


(Anton Raharja) #8

kannel is pushing the data to playSMS, but it contains no message (no text), the variable a is the message, and its empty

geturl is incoming message

btw please quote the log properly, use markdown tags

anton


(Tshering Dhendup) #9

Dear Anton,

Can you please have a look at my kannel config file please.

group = core
admin-port = 14000
smsbox-port = 14001
admin-password = admin
status-password = admin
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "192.168.96.23"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "192.168.96.23"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
dlr-storage = internal
store-type = file
store-file = /var/log/kannel/kannel.store
group = smsc
smsc = smpp
smsc-id = sms11
smsc-username = foo
smsc-password = xyz
system-type = smpp
host = x.y.z.a
port = portno
connect-allow-ip = 127.0.0.1
transceiver-mode = true
group = smsbox
bearerbox-host = 192.168.96.23
sendsms-port = 14002
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsbox-access.log"
#Playsms
group = sendsms-user
username = admin
password = admin
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;"
group = sms-service
keyword = default
catch-all = yes
accepted-smsc = sms11
# don't send a reply here (it'll come through sendsms):
max-messages = 1000
accept-x-kannel-headers = true
get-url = "http://192.168.96.23/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q"

Also, when I sent sms from my phone to the short code 1100, I get the message reply as “empty reply from service provider”

Regards


(Anton Raharja) #10

Yes, its correct.

Again please quote your pasted log with markdown or commonmark http://commonmark.org/help/ read the code block

Please set the $core_config['logstate'] to 3 in config.php (default is 2), and then playsmsd restart

anton


(Tshering Dhendup) #11

Dear Anton,

I have set the logstate to 3 as suggested. Please find the logs below. I am not sure if the format you wanted is right or wrong, since I am newbie to markdown

    2018-07-20 09:37:51 PID5b51a8c18f56f - L3 recvsmsd # id:26 dt:2018-07-20 09:37:51 sender:+97517573220 m:Dear sir/madam plz connect internet this number la. receiver:1600 smsc:
    2018-07-20 09:37:51 PID5b51a8c18f56f - L3 recvsms_process # dt:2018-07-20 09:37:51 sender:+97517573220 m:Dear sir/madam plz connect internet this number la. receiver:1600 smsc:
    2018-07-20 09:37:51 PID5b51a8c18f56f - L3 recvsms_process # unhandled datetime:2018-07-20 09:37:51 sender:+97517573220 receiver:1600 message:Dear sir/madam plz connect internet this number la.
    2018-07-20 09:37:51 PID5b51a8c18f56f - L3 incoming__recvsms_intercept_after # sandbox forward to URL start url:[http://192.168.96.23/index.php?app=main&inc=core_welcome]
    2018-07-20 09:37:51 PID5b51a8c18f56f - L3 incoming__recvsms_intercept_after # sandbox forward to URL end response:[ <link rel="stylesheet" type="text/css" href="http://192.168.96.23//plugin 192.168.96.23 192.168.96.23 2018-07-20 09:41:14 PID5b51ae3a29341 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php 192.168.96.23 192.168.96.23 2018-07-20 09:41:14 PID5b51ae3a29341 - L3 kannel__incoming # remote_addr:192.168.96.23 remote_host:192.168.96.23 t:[2018-07-20 09:41:14] q:[+97517455060] a:[Kindly give me no of t bank gelephu] Q:[1600] smsc:[] smsc:[] 192.168.96.23 192.168.96.23 2018-07-20 09:41:14 PID5b51ae3a29341 - L3 recvsms # isrecvsmsd:1 dt:2018-07-20 09:41:14 sender:+97517455060 m:Kindly give me no of t bank gelephu receiver:1600 smsc: 192.168.96.23 192.168.96.23 2018-07-20 09:41:14 PID5b51ae3a29341 - L2 kannel__call # end load geturl
    2018-07-20 09:41:15 PID5b51a8c18f56f - L3 recvsmsd # id:27 dt:2018-07-20 09:41:14 sender:+97517455060 m:Kindly give me no of t bank gelephu receiver:1600 smsc:
    2018-07-20 09:41:15 PID5b51a8c18f56f - L3 recvsms_process # dt:2018-07-20 09:41:14 sender:+97517455060 m:Kindly give me no of t bank gelephu receiver:1600 smsc:
    2018-07-20 09:41:15 PID5b51a8c18f56f - L3 recvsms_process # unhandled datetime:2018-07-20 09:41:14 sender:+97517455060 receiver:1600 message:Kindly give me no of t bank gelephu
    2018-07-20 09:41:15 PID5b51a8c18f56f - L3 incoming__recvsms_intercept_after # sandbox forward to URL start url:[http://192.168.96.23/index.php?app=main&inc=core_welcome]
    2018-07-20 09:41:15 PID5b51a8c18f56f - L3 incoming__recvsms_intercept_after # sandbox forward to URL end response:[ <link rel="stylesheet" type="text/css" href="http://192.168.96.23//plugin

(Anton Raharja) #12

looks good, that is what I want, you quote the log with backtick.

ok, first, please remove the sandbox forward to URL, and then try to send SMS.

is the system in production ? I mean if you want to test sending an SMS if possible turn of the incoming first, so that your log file will be cleaner to read and easier to understand and focus

anton


(Tshering Dhendup) #13

Dear Anton,

I have removed the forward to URL. Please see the logs below. Well ! The system is production.

    2018-07-20 10:01:44 PID5b51a8c18f56f - L3 recvsmsd # id:92 dt:2018-07-20 10:01:43 sender:+97517736814 m:A receiver:1600 smsc:
    2018-07-20 10:01:44 PID5b51a8c18f56f - L3 recvsms_process # dt:2018-07-20 10:01:43 sender:+97517736814 m:A receiver:1600 smsc:
    2018-07-20 10:01:44 PID5b51a8c18f56f - L3 recvsms_process # unhandled datetime:2018-07-20 10:01:43 sender:+97517736814 receiver:1600 message:A 192.168.96.23 192.168.96.23 2018-07-20 10:01:45 PID5b51b309954b9 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php 192.168.96.23 192.168.96.23 2018-07-20 10:01:45 PID5b51b309954b9 - L3 kannel__incoming # remote_addr:192.168.96.23 remote_host:192.168.96.23 t:[2018-07-20 10:01:45] q:[+97517736814] a:[M] Q:[1600] smsc:[] smsc:[] 192.168.96.23 192.168.96.23 2018-07-20 10:01:45 PID5b51b309954b9 - L3 recvsms # isrecvsmsd:1 dt:2018-07-20 10:01:45 sender:+97517736814 m:M receiver:1600 smsc: 192.168.96.23 192.168.96.23 2018-07-20 10:01:45 PID5b51b309954b9 - L2 kannel__call # end load geturl
    2018-07-20 10:01:46 PID5b51a8c18f56f - L3 recvsmsd # id:93 dt:2018-07-20 10:01:45 sender:+97517736814 m:M receiver:1600 smsc:
    2018-07-20 10:01:46 PID5b51a8c18f56f - L3 recvsms_process # dt:2018-07-20 10:01:45 sender:+97517736814 m:M receiver:1600 smsc:
    2018-07-20 10:01:46 PID5b51a8c18f56f - L3 recvsms_process # unhandled datetime:2018-07-20 10:01:45 sender:+97517736814 receiver:1600 message:M 192.168.96.23 192.168.96.23 2018-07-20 10:01:47 PID5b51b30bae639 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php 192.168.96.23 192.168.96.23 2018-07-20 10:01:47 PID5b51b30bae639 - L3 kannel__incoming # remote_addr:192.168.96.23 remote_host:192.168.96.23 t:[2018-07-20 10:01:47] q:[+97517736814] a:[L] Q:[1600] smsc:[] smsc:[] 192.168.96.23 192.168.96.23 2018-07-20 10:01:47 PID5b51b30bae639 - L3 recvsms # isrecvsmsd:1 dt:2018-07-20 10:01:47 sender:+97517736814 m:L receiver:1600 smsc: 192.168.96.23 192.168.96.23 2018-07-20 10:01:47 PID5b51b30bae639 - L2 kannel__call # end load geturl
    2018-07-20 10:01:48 PID5b51a8c18f56f - L3 recvsmsd # id:94 dt:2018-07-20 10:01:47 sender:+97517736814 m:L receiver:1600 smsc:
    2018-07-20 10:01:48 PID5b51a8c18f56f - L3 recvsms_process # dt:2018-07-20 10:01:47 sender:+97517736814 m:L receiver:1600 smsc:
    2018-07-20 10:01:48 PID5b51a8c18f56f - L3 recvsms_process # unhandled datetime:2018-07-20 10:01:47 sender:+97517736814 receiver:1600 message:L 192.168.96.23 192.168.96.23 2018-07-20 10:01:49 PID5b51b30dbc122 - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php 192.168.96.23 192.168.96.23 2018-07-20 10:01:49 PID5b51b30dbc122 - L3 kannel__incoming # remote_addr:192.168.96.23 remote_host:192.168.96.23 t:[2018-07-20 10:01:49] q:[+97517736814] a:[A] Q:[1600] smsc:[] smsc:[] 192.168.96.23 192.168.96.23 2018-07-20 10:01:49 PID5b51b30dbc122 - L3 recvsms # isrecvsmsd:1 dt:2018-07-20 10:01:49 sender:+97517736814 m:A receiver:1600 smsc: 192.168.96.23 192.168.96.23 2018-07-20 10:01:49 PID5b51b30dbc122 - L2 kannel__call # end load geturl
    2018-07-20 10:01:50 PID5b51a8c18f56f - L3 recvsmsd # id:95 dt:2018-07-20 10:01:49 sender:+97517736814 m:A receiver:1600 smsc:
    2018-07-20 10:01:50 PID5b51a8c18f56f - L3 recvsms_process # dt:2018-07-20 10:01:49 sender:+97517736814 m:A receiver:1600 smsc:
    2018-07-20 10:01:50 PID5b51a8c18f56f - L3 recvsms_process # unhandled datetime:2018-07-20 10:01:49 sender:+97517736814 receiver:1600 message:A 192.168.96.23 192.168.96.23 2018-07-20 10:01:51 PID5b51b30fa42ad - L2 kannel__call # start load:/var/www/playsms/plugin/gateway/kannel/geturl.php 192.168.96.23 192.168.96.23 2018-07-20 10:01:51 PID5b51b30fa42ad - L3 kannel__incoming # remote_addr:192.168.96.23 remote_host:192.168.96.23 t:[2018-07-20 10:01:51] q:[+97517736814] a:[M] Q:[1600] smsc:[] smsc:[] 192.168.96.23 192.168.96.23 2018-07-20 10:01:51 PID5b51b30fa42ad - L3 recvsms # isrecvsmsd:1 dt:2018-07-20 10:01:51 sender:+97517736814 m:M receiver:1600 smsc: 192.168.96.23 192.168.96.23 2018-07-20 10:01:51 PID5b51b30fa42ad - L2 kannel__call # end load geturl

(Anton Raharja) #14

Your system works as expectec, its just a matter of configuration

Last log above is about incoming SMS, they’re coming in and saved in sandbox, no services handling them so you need to configure features

Anton


(Tshering Dhendup) #15

Dear Anton,

Thank you once again. Well ! but when I try to send sms from playsms to any number, its seen as failed after staying as ‘pending’ for some time. If you could help me sort this out.

And another thing, when I sent sms to the short code, I get the reply 'empty message from the service provider". How do I sort this out and set a customized message saying " the service is currently offline, etc etc " ?

Regards


(Tshering Dhendup) #16

Dear Anton,

Any good news? The issues with respect to sms seen as ‘pending’ in playsms. The help will be appreciated as I could not find the ‘root cause’ for a couple of days now.

Thank you.


(Arjun Dev) #17

HI I am Arjun I solved many problems of kannel users and playsms users

my skype id is ‘adev09@gmail.com’
ping me at India time 10am to 7pm

Kannel is very simple gateway