playSMS and kannel subscription features

Okay, I will see if that solves the problem.

I tried the nginx method. But I failed at my.textng.com. I am confused there. I just followed the tutorial and my.textng.com won’t load. Apache was a little easier for me. The domain name thing confused me. Things were better at localhost.

skip that part, use apache is fine

anton

The display problem is now partially fixed. I can see my sent messages in the dashboard.But my inbox is empty. Incoming messages goes to sandbox.
I also have added the subscriptions with keywords being a number. 1 and 2. But when subscribers send that keyword, it replies with the value of “Unknown format” reply. I also don’t understand the concept of “SMS subscribe parameter” and “SMS unsubscribe” parameter. Is it opt-in and opt-out keywords checking mechanism?

I have two short codes, one for registration and one for content delivery. I want to assign which numbers should accept which keywords. can I do that?

Problem has been fixed, now its just configuration.

SMS subscribe offer self join to some sort of group, and then you can send messages to that group.

Anton

Yeah, I have tried that. That was my main aim of the project. I tried to create two subscription groups with two different keywords. But it doesn’t accept the sender to the group. The message just goes to sandbox and subscription is empty.

And, oh, my sent messages shows the pending status even though the messages are delivered.

Read the log for any issue if you want to know or at least guess why it happened

Anton

Sent SMS do appear in “My Sent messages”, but with “Failed” status. Even the subscription auto-reply also appear with “Failed” status. Thats also a wrong auto-reply. Its the “Unknown format” reply field thats trying to be sent. The received one goes to sandbox.
When a user send a subscription keyword, which is “1” or “2” for two different groups, incoming message goes to “My feature messages” page. And they don’t get added to the appropriate group. They also don’t receive any auto-reply. When a user sends a random keyword, which is not assigned in my subscription management, the incoming message goes to “Sandbox” page.

Here are my Logs for different situations.

1. When user sends the valid subscription keyword, in this case, "1"

193.169.1.2 193.169.1.3 2018-09-14 09:26:26 PID5b9b62a241073 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
193.169.1.2 193.169.1.3 2018-09-14 09:26:26 PID5b9b62a241073 - L3 kannel__incoming # remote_addr:193.169.1.2 remote_host:193.169.1.3 t:[2018-09-14 07:26:25] q:[+251920202020] a:[1] Q:[6506] smsc:[smpp1] smsc:[smpp1]
193.169.1.2 193.169.1.3 2018-09-14 09:26:26 PID5b9b62a241073 - L3 recvsms # isrecvsmsd:1 dt:2018-09-14 07:26:25 sender:+251920202020 m:1 receiver:6506 smsc:smpp1
193.169.1.2 193.169.1.3 2018-09-14 09:26:26 PID5b9b62a241073 - L2 kannel__call # end load geturl
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 recvsmsd # id:207 dt:2018-09-14 14:26:25 sender:+251920202020 m:1 receiver:6506 smsc:smpp1
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 recvsms_process # dt:2018-09-14 14:26:25 sender:+251920202020 m:1 receiver:6506 smsc:smpp1
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 recvsms_process # unknown supplied SMSC smsc:[smpp1]
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sms_subscribe # begin k:1 c:
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 sms_subscribe # username:admin sender:+251920202020 keyword:1 param:
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 gateway_decide_smsc # SMSC supplied:[smpp1] configured:[_smsc_supplied_] decided smsc:[blocked]
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sms_subscribe # Unknown format sender:+251920202020 keyword:1 mobile:+251920202020
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 sms_subscribe_handle # sending reply u:admin to:+251920202020 m:[Unknown format message] smsc:[blocked]
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sendsms # start uid:1 sender_id:[6507] smsc:[blocked]
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 sendsms # maxlen:459 footerlen:0 footer:[] msglen:22 message:[Unknown format message]
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sendsms_queue_create # saving queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 src:6507 scheduled:2018-09-14 16:26:26
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sendsms_queue_create # saved queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 id:142
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[+251920202020]
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+251920202020]
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202020 default_rate:0
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202020 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sendsms_queue_push # saving queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 dst:+251920202020
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sendsms_queue_push # saved queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 smslog_id:153
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sendsms # end queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L2 sms_subscribe # end k:1 c: s:handled
- - 2018-09-14 09:26:26 PID5b9b54ec125e0 admin L3 recvsms_process # feature:sms_subscribe datetime:2018-09-14 14:26:25 sender:+251920202020 receiver:6506 keyword:1 message: raw:1 smsc:smpp1
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:18
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 sendsmsd # start processing queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 chunk:0 queue_count:1 sms_count:1 scheduled:2018-09-14 09:26:26 uid:1 gpid:0 sender_id:6507
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 sendsmsd # sending queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 smslog_id:153 to:+251920202020 sms_count:1 counter:1
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 sendsms_intercept # msgtemplate modified sms_sender:[6507] sms_footer:[] sms_to:[+251920202020] sms_msg:[Unknown format message] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[f00b4b2a740f8dbc5ff54d59fb26b5a4] smsc:[blocked]
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 outgoing_hook_sendsms_intercept # using supplied smsc smsc:[blocked] uid:1 from:6507 to:+251920202020
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 sendsms_intercept # outgoing modified sms_sender:[6507] sms_footer:[] sms_to:[+251920202020] sms_msg:[Unknown format message] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[f00b4b2a740f8dbc5ff54d59fb26b5a4] smsc:[blocked]
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 sendsms_process # start
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202020 default_rate:0
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202020 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+251920202020 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 sendsms # saving smslog_id:153 u:1 parent_uid:0 g:0 gw:blocked smsc:blocked s:6507 d:+251920202020 type:text unicode:0 status:0
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 sendsms_process # saved smslog_id:153 id:153
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 sendsms # final smslog_id:153 gw:blocked smsc:blocked message:Unknown format message len:22
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 blocked_hook_sendsms # enter smsc:blocked smslog_id:153 uid:1 to:+251920202020
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 dlr # isdlrd:1 smslog_id:153 p_status:2 uid:1
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 simplerate_hook_rate_deduct # enter smslog_id:153
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202020 default_rate:0
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202020 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 simplebilling_hook_billing_post # saving smslog_id:153 rate: count:1 charge:0
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 simplebilling_hook_billing_post # saved smslog_id:153 id:153
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:153
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 sendsms_process # end
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L3 sendsms_throttle_count # throttle bucket exists start:2018-09-14 08:34:37 sum:18 limit:30000
- - 2018-09-14 09:26:27 PID5b9b62a371b68 - L2 sendsmsd # result queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 to:+251920202020 flag:1 smslog_id:153
- - 2018-09-14 09:26:28 PID5b9b62a371b68 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:19
- - 2018-09-14 09:26:28 PID5b9b62a371b68 - L2 sendsmsd # finish processing queue_code:f00b4b2a740f8dbc5ff54d59fb26b5a4 uid:1 sender_id:6507 queue_count:1 sms_count:1
- - 2018-09-14 09:26:28 PID5b9b54ec0963e - L3 dlrd # id:153 smslog_id:153 p_status:2 uid:1

2. When user sends unknown keyword.

193.169.1.2 193.169.1.3 2018-09-14 09:29:24 PID5b9b6354096d5 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
193.169.1.2 193.169.1.3 2018-09-14 09:29:24 PID5b9b6354096d5 - L3 kannel__incoming # remote_addr:193.169.1.2 remote_host:193.169.1.3 t:[2018-09-14 07:29:25] q:[+251920202021] a:[7] Q:[6506] smsc:[smpp1] smsc:[smpp1]
193.169.1.2 193.169.1.3 2018-09-14 09:29:24 PID5b9b6354096d5 - L3 recvsms # isrecvsmsd:1 dt:2018-09-14 07:29:25 sender:+251920202021 m:7 receiver:6506 smsc:smpp1
193.169.1.2 193.169.1.3 2018-09-14 09:29:24 PID5b9b6354096d5 - L2 kannel__call # end load geturl
- - 2018-09-14 09:29:24 PID5b9b54ec125e0 admin L3 recvsmsd # id:208 dt:2018-09-14 14:29:25 sender:+251920202021 m:7 receiver:6506 smsc:smpp1
- - 2018-09-14 09:29:24 PID5b9b54ec125e0 admin L3 recvsms_process # dt:2018-09-14 14:29:25 sender:+251920202021 m:7 receiver:6506 smsc:smpp1
- - 2018-09-14 09:29:24 PID5b9b54ec125e0 admin L3 recvsms_process # unknown supplied SMSC smsc:[smpp1]
- - 2018-09-14 09:29:24 PID5b9b54ec125e0 admin L3 recvsms_process # unhandled datetime:2018-09-14 14:29:25 sender:+251920202021 receiver:6506 message:7

3. When I send SMS to some user.

193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L2 sendsms # start uid:1 sender_id:[6507] smsc:[]
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L3 sendsms # maxlen:459 footerlen:0 footer:[] msglen:22 message:[Test message from 6507]
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L2 sendsms_queue_create # saving queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb src:6507 scheduled:2018-09-14 16:32:55
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L2 sendsms_queue_create # saved queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb id:143
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[+251920202021]
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+251920202021]
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202021 default_rate:0
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202021 enable_credit_unicode:0 count:1 rate: charge:0
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L2 sendsms_queue_push # saving queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb dst:+251920202021
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L2 sendsms_queue_push # saved queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb smslog_id:154
193.169.1.2 193.169.1.3 2018-09-14 09:32:55 PID5b9b6426c3579 admin L2 sendsms # end queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:19
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsmsd # start processing queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb chunk:0 queue_count:1 sms_count:1 scheduled:2018-09-14 09:32:55 uid:1 gpid:0 sender_id:6507
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsmsd # sending queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb smslog_id:154 to:+251920202021 sms_count:1 counter:1
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 sendsms_intercept # msgtemplate modified sms_sender:[6507] sms_footer:[] sms_to:[+251920202021] sms_msg:[Test message from 6507] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[9eb5346bf7b31a7c4ee68dff70cbfefb] smsc:[]
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:6507 to:+251920202021
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 recvsms_process # using default SMSC smsc:[kannel]
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsms_process # start
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202021 default_rate:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202021 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+251920202021 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsms # saving smslog_id:154 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:6507 d:+251920202021 type:text unicode:0 status:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsms_process # saved smslog_id:154 id:154
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 sendsms # final smslog_id:154 gw:kannel smsc:kannel message:Test message from 6507 len:22
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:154 uid:1 to:+251920202021
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 kannel_hook_sendsms # URL: http://193.169.1.2:13131/cgi-bin/sendsms?username=playsms&password=yahya2018&from=6507&to=%2B251920202021&dlr-mask=27&dlr-url=http%3A%2F%2Flocalhost%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D154%26uid%3D1%26smsc%3Dkannel&account=admin&text=Test+message+from+6507
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 dlr # isdlrd:1 smslog_id:154 p_status:2 uid:1
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 kannel__outgoing # end smslog_id:154 p_status:2
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 simplerate_hook_rate_deduct # enter smslog_id:154
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202021 default_rate:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202021 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 simplebilling_hook_billing_post # saving smslog_id:154 rate: count:1 charge:0
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 simplebilling_hook_billing_post # saved smslog_id:154 id:154
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:154
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsms_process # end
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 sendsms_throttle_count # throttle bucket exists start:2018-09-14 08:34:37 sum:19 limit:30000
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsmsd # result queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb to:+251920202021 flag:1 smslog_id:154
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:20
- - 2018-09-14 09:32:57 PID5b9b6428ed749 - L2 sendsmsd # finish processing queue_code:9eb5346bf7b31a7c4ee68dff70cbfefb uid:1 sender_id:6507 queue_count:1 sms_count:1
- - 2018-09-14 09:32:58 PID5b9b54ec0963e - L3 dlrd # id:154 smslog_id:154 p_status:2 uid:1

This is what my kanne conf lookslike btw

# CORE
group = core
admin-port = 13000
admin-password = yahya2018
status-password = yahya2018
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
#dlr-storage = mysql
dlr-storage = internal

# 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 This independent SMPP simulation software
group = smsc
smsc = smpp
smsc-id = smpp1
allowed-smsc-id = smpp1
preferred-smsc-id = smpp1
host = 193.169.1.10
port = 2775
transceiver-mode = yes
smsc-username = ""
smsc-password =  ""
system-type = "VMA"
log-file = /var/log/kannel/smsc-smpp1.log
#log-level = 0
throughput = 14


# SENDSMS-USER
group = sendsms-user
default-smsc = none
username = playsms
password = yahya2018
max-messages = 6
concatenation = true



# SMS SERVICE default
group = sms-service
keyword = default
#text = "Autoreply from KANNEL for wrong input"
omit-empty = true
max-messages = 2
get-url = "http://193.169.1.3/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i"
concatenation = true

Wrong usage on sms subscribe, use subscribe and unsub parameter on incoming sms not just the keyword.

Wrong Kannel config on gateway plugin config, bearerbox host should not be localhost but the kannel’s IP

Last, change your kannel password, you have posted it in this forum which is public.

Anton

My subscription page settings
I used subscription parameters as below. But still subscribers won’t get the appropriate auto-reply. Unsupported format gets dispersed even though it doesn’t get delivered.

My kannel seting in playSMS

My kannel.conf file

# CORE
group = core
admin-port = 13000
admin-password = yahya2018
status-password = yahya2018
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
#dlr-storage = mysql
dlr-storage = internal


# SMSBOX
group = smsbox
bearerbox-host = 193.169.1.2 #this is where kannel server is
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 = 193.169.1.10
port = 2775
transceiver-mode = yes
smsc-username = ""
smsc-password =  ""
system-type = "VMA"
log-file = /var/log/kannel/smsc-smpp1.log
#log-level = 0
#throughput = 14




# SENDSMS-USER
group = sendsms-user
default-smsc = none
username = playsms
password = yahya2018
max-messages = 6
concatenation = true





# SMS SERVICE default
group = sms-service
keyword = default
#text = "Autoreply from KANNEL for wrong input"
omit-empty = true
max-messages = 2
get-url = "http://193.169.1.3/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i"

Log when I send SMS

193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L2 sendsms # start uid:1 sender_id:[6507] smsc:[]
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L3 sendsms # maxlen:459 footerlen:0 footer:[] msglen:22 message:[Test message from 6507]
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L2 sendsms_queue_create # saving queue_code:04c54aa3cb913f5586389d240da331c8 src:6507 scheduled:2018-09-14 21:20:28
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L2 sendsms_queue_create # saved queue_code:04c54aa3cb913f5586389d240da331c8 id:172
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[+251920202020]
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+251920202020]
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202020 default_rate:0
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202020 enable_credit_unicode:0 count:1 rate: charge:0
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L2 sendsms_queue_push # saving queue_code:04c54aa3cb913f5586389d240da331c8 dst:+251920202020
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L2 sendsms_queue_push # saved queue_code:04c54aa3cb913f5586389d240da331c8 smslog_id:183
193.169.1.2 193.169.1.3 2018-09-14 14:20:28 PID5b9ba78c444d9 admin L2 sendsms # end queue_code:04c54aa3cb913f5586389d240da331c8 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:22
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 sendsmsd # start processing queue_code:04c54aa3cb913f5586389d240da331c8 chunk:0 queue_count:1 sms_count:1 scheduled:2018-09-14 14:20:28 uid:1 gpid:0 sender_id:6507
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 sendsmsd # sending queue_code:04c54aa3cb913f5586389d240da331c8 smslog_id:183 to:+251920202020 sms_count:1 counter:1
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 sendsms_intercept # msgtemplate modified sms_sender:[6507] sms_footer:[] sms_to:[+251920202020] sms_msg:[Test message from 6507] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[04c54aa3cb913f5586389d240da331c8] smsc:[]
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:6507 to:+251920202020
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 recvsms_process # using default SMSC smsc:[kannel]
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 sendsms_process # start
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202020 default_rate:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202020 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+251920202020 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 sendsms # saving smslog_id:183 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:6507 d:+251920202020 type:text unicode:0 status:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 sendsms_process # saved smslog_id:183 id:183
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 sendsms # final smslog_id:183 gw:kannel smsc:kannel message:Test message from 6507 len:22
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:183 uid:1 to:+251920202020
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 kannel_hook_sendsms # URL: http://193.169.1.2:13131/cgi-bin/sendsms?username=playsms&password=yahya2018&from=6507&to=%2B251920202020&dlr-mask=27&dlr-url=http%3A%2F%2F193.169.1.3%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D183%26uid%3D1%26smsc%3Dkannel&account=admin&text=Test+message+from+6507
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 dlr # isdlrd:1 smslog_id:183 p_status:2 uid:1
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 kannel__outgoing # end smslog_id:183 p_status:2
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 simplerate_hook_rate_deduct # enter smslog_id:183
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920202020 default_rate:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920202020 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 simplebilling_hook_billing_post # saving smslog_id:183 rate: count:1 charge:0
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 simplebilling_hook_billing_post # saved smslog_id:183 id:199
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:183
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L2 sendsms_process # end
- - 2018-09-14 14:20:29 PID5b9ba78d79687 - L3 sendsms_throttle_count # throttle bucket exists start:2018-09-14 13:52:32 sum:22 limit:30000
193.169.1.2 193.169.1.3 2018-09-14 14:20:29 PID5b9ba78dd822b - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
193.169.1.2 193.169.1.3 2018-09-14 14:20:29 PID5b9ba78dd822b - L3 kannel__dlr # remote_addr:193.169.1.2 remote_host:193.169.1.3 type:[16] smslog_id:[183] uid:[1] smsc:[kannel]
193.169.1.2 193.169.1.3 2018-09-14 14:20:29 PID5b9ba78dd822b - L3 dlr # isdlrd:1 smslog_id:183 p_status:2 uid:1
193.169.1.2 193.169.1.3 2018-09-14 14:20:29 PID5b9ba78dd822b - L2 kannel__call # end load dlr
- - 2018-09-14 14:20:30 PID5b9ba78d79687 - L2 sendsmsd # result queue_code:04c54aa3cb913f5586389d240da331c8 to:+251920202020 flag:1 smslog_id:183
- - 2018-09-14 14:20:30 PID5b9ba78d79687 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:23
- - 2018-09-14 14:20:30 PID5b9ba78d79687 - L2 sendsmsd # finish processing queue_code:04c54aa3cb913f5586389d240da331c8 uid:1 sender_id:6507 queue_count:1 sms_count:1
- - 2018-09-14 14:20:30 PID5b9b54ec0963e - L3 dlrd # id:199 smslog_id:183 p_status:2 uid:1
- - 2018-09-14 14:20:30 PID5b9b54ec0963e - L3 dlrd # id:200 smslog_id:183 p_status:2 uid:1

Log when subscriber sends the keyword.

193.169.1.2 193.169.1.3 2018-09-14 14:30:06 PID5b9ba9ced7454 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
193.169.1.2 193.169.1.3 2018-09-14 14:30:06 PID5b9ba9ced7454 - L3 kannel__incoming # remote_addr:193.169.1.2 remote_host:193.169.1.3 t:[2018-09-14 12:30:06] q:[+251920167661] a:[1] Q:[6506] smsc:[smpp1] smsc:[smpp1]
193.169.1.2 193.169.1.3 2018-09-14 14:30:06 PID5b9ba9ced7454 - L3 recvsms # isrecvsmsd:1 dt:2018-09-14 12:30:06 sender:+251920167661 m:1 receiver:6506 smsc:smpp1
193.169.1.2 193.169.1.3 2018-09-14 14:30:06 PID5b9ba9ced7454 - L2 kannel__call # end load geturl
193.169.1.2 193.169.1.3 2018-09-14 14:30:07 PID5b9ba9ced7fe5 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/geturl.php
193.169.1.2 193.169.1.3 2018-09-14 14:30:07 PID5b9ba9ced7fe5 - L3 kannel__incoming # remote_addr:193.169.1.2 remote_host:193.169.1.3 t:[2018-09-14 12:30:06] q:[+251920167661] a:[This SMS is sent by an EVALUATION version of the ActiveXperts SMS Component SMPP Server API. Purchase the full version here: www.activexperts.com] Q:[6506] smsc:[smpp1] smsc:[smpp1]
193.169.1.2 193.169.1.3 2018-09-14 14:30:07 PID5b9ba9ced7fe5 - L3 recvsms # isrecvsmsd:1 dt:2018-09-14 12:30:06 sender:+251920167661 m:This SMS is sent by an EVALUATION version of the ActiveXperts SMS Component SMPP Server API. Purchase the full version here: www.activexperts.com receiver:6506 smsc:smpp1
193.169.1.2 193.169.1.3 2018-09-14 14:30:07 PID5b9ba9ced7fe5 - L2 kannel__call # end load geturl
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsmsd # id:248 dt:2018-09-14 19:30:06 sender:+251920167661 m:1 receiver:6506 smsc:smpp1
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsms_process # dt:2018-09-14 19:30:06 sender:+251920167661 m:1 receiver:6506 smsc:smpp1
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsms_process # unknown supplied SMSC smsc:[smpp1]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sms_subscribe # begin k:1 c:
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 sms_subscribe # username:admin sender:+251920167661 keyword:1 param:
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 gateway_decide_smsc # SMSC supplied:[smpp1] configured:[kannel] decided smsc:[kannel]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sms_subscribe # Unknown format sender:+251920167661 keyword:1 mobile:+251920167661
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 sms_subscribe_handle # sending reply u:admin to:+251920167661 m:[Unknown format message] smsc:[kannel]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sendsms # start uid:1 sender_id:[6507] smsc:[kannel]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 sendsms # maxlen:459 footerlen:0 footer:[] msglen:22 message:[Unknown format message]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sendsms_queue_create # saving queue_code:23c117e85ad76f0892d5d34a698c7d3e src:6507 scheduled:2018-09-14 21:30:07
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sendsms_queue_create # saved queue_code:23c117e85ad76f0892d5d34a698c7d3e id:181
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[+251920167661]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+251920167661]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920167661 default_rate:0
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920167661 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sendsms_queue_push # saving queue_code:23c117e85ad76f0892d5d34a698c7d3e dst:+251920167661
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sendsms_queue_push # saved queue_code:23c117e85ad76f0892d5d34a698c7d3e smslog_id:192
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sendsms # end queue_code:23c117e85ad76f0892d5d34a698c7d3e queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L2 sms_subscribe # end k:1 c: s:handled
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsms_process # feature:sms_subscribe datetime:2018-09-14 19:30:06 sender:+251920167661 receiver:6506 keyword:1 message: raw:1 smsc:smpp1
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsmsd # id:249 dt:2018-09-14 19:30:06 sender:+251920167661 m:This SMS is sent by an EVALUATION version of the ActiveXperts SMS Component SMPP Server API. Purchase the full version here: www.activexperts.com receiver:6506 smsc:smpp1
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 inboxgroup # forwardcatchall id:1 s:+251920167661 r:6506 m:This SMS is sent by an EVALUATION version of the ActiveXperts SMS Component SMPP Server API. Purchase the full version here: www.activexperts.com
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsms_process # dt:2018-09-14 19:30:06 sender:+251920167661 m:This SMS is sent by an EVALUATION version of the ActiveXperts SMS Component SMPP Server API. Purchase the full version here: www.activexperts.com receiver:6506 smsc:smpp1
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsms_process # unknown supplied SMSC smsc:[smpp1]
- - 2018-09-14 14:30:07 PID5b9b54ec125e0 admin L3 recvsms_process # intercepted datetime:2018-09-14 19:30:06 sender:+251920167661 receiver:6506 message:This SMS is sent by an EVALUATION version of the ActiveXperts SMS Component SMPP Server API. Purchase the full version here: www.activexperts.com
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:28
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L2 sendsmsd # start processing queue_code:23c117e85ad76f0892d5d34a698c7d3e chunk:0 queue_count:1 sms_count:1 scheduled:2018-09-14 14:30:07 uid:1 gpid:0 sender_id:6507
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L2 sendsmsd # sending queue_code:23c117e85ad76f0892d5d34a698c7d3e smslog_id:192 to:+251920167661 sms_count:1 counter:1
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 sendsms_intercept # msgtemplate modified sms_sender:[6507] sms_footer:[] sms_to:[+251920167661] sms_msg:[Unknown format message] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[23c117e85ad76f0892d5d34a698c7d3e] smsc:[kannel]
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 outgoing_hook_sendsms_intercept # using supplied smsc smsc:[kannel] uid:1 from:6507 to:+251920167661
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 sendsms_intercept # outgoing modified sms_sender:[6507] sms_footer:[] sms_to:[+251920167661] sms_msg:[Unknown format message] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[23c117e85ad76f0892d5d34a698c7d3e] smsc:[kannel]
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L2 sendsms_process # start
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920167661 default_rate:0
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920167661 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+251920167661 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L2 sendsms # saving smslog_id:192 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:6507 d:+251920167661 type:text unicode:0 status:0
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L2 sendsms_process # saved smslog_id:192 id:192
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 sendsms # final smslog_id:192 gw:kannel smsc:kannel message:Unknown format message len:22
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:192 uid:1 to:+251920167661
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 kannel_hook_sendsms # URL: http://193.169.1.2:13131/cgi-bin/sendsms?username=playsms&password=yahya2018&from=6507&to=%2B251920167661&dlr-mask=27&dlr-url=http%3A%2F%2F193.169.1.3%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D192%26uid%3D1%26smsc%3Dkannel&account=admin&text=Unknown+format+message
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 dlr # isdlrd:1 smslog_id:192 p_status:2 uid:1
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L3 kannel__outgoing # end smslog_id:192 p_status:2
- - 2018-09-14 14:30:08 PID5b9ba9d09d561 - L2 simplerate_hook_rate_deduct # enter smslog_id:192
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+251920167661 default_rate:0
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:+251920167661 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L2 simplebilling_hook_billing_post # saving smslog_id:192 rate: count:1 charge:0
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L2 simplebilling_hook_billing_post # saved smslog_id:192 id:217
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:192
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L2 sendsms_process # end
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L3 sendsms_throttle_count # throttle bucket exists start:2018-09-14 13:52:32 sum:28 limit:30000
193.169.1.2 193.169.1.3 2018-09-14 14:30:09 PID5b9ba9d0f20f9 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
193.169.1.2 193.169.1.3 2018-09-14 14:30:09 PID5b9ba9d0f20f9 - L3 kannel__dlr # remote_addr:193.169.1.2 remote_host:193.169.1.3 type:[16] smslog_id:[192] uid:[1] smsc:[kannel]
193.169.1.2 193.169.1.3 2018-09-14 14:30:09 PID5b9ba9d0f20f9 - L3 dlr # isdlrd:1 smslog_id:192 p_status:2 uid:1
193.169.1.2 193.169.1.3 2018-09-14 14:30:09 PID5b9ba9d0f20f9 - L2 kannel__call # end load dlr
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L2 sendsmsd # result queue_code:23c117e85ad76f0892d5d34a698c7d3e to:+251920167661 flag:1 smslog_id:192
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:29
- - 2018-09-14 14:30:09 PID5b9ba9d09d561 - L2 sendsmsd # finish processing queue_code:23c117e85ad76f0892d5d34a698c7d3e uid:1 sender_id:6507 queue_count:1 sms_count:1
- - 2018-09-14 14:30:09 PID5b9b54ec0963e - L3 dlrd # id:217 smslog_id:192 p_status:2 uid:1
- - 2018-09-14 14:30:09 PID5b9b54ec0963e - L3 dlrd # id:218 smslog_id:192 p_status:2 uid:1

I still can’t send SMS.

Lets fix one issue at a time.

For SMS subscribe to work
Send to Kannel: 1 SUBSCRIBE
Instead of just: 1

As I can see from the log, now it is sending the right reply to the subscriber and also adds that subscribe to the appropriate group, given the subscriber sends the right keyword along with the right param. But the sent SMS doesn’t make it to cell. It is failed status.

playSMS received delivery report correctly from Kannel and processed it accordingly. Check on your Kannel, see Kannel’s log.

Anton

My kannel log shows nothing. The log is same as when it first started. Nothing changes when I send a message.

This is my playSMS log when I try to send a message

193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L2 sendsms # start uid:1 sender_id:[6506] smsc:[]
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L3 sendsms # maxlen:459 footerlen:0 footer:[] msglen:22 message:[Test message from 6506]
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L2 sendsms_queue_create # saving queue_code:4e7613449c1a5b9a4710576ec4c80032 src:6506 scheduled:2018-09-15 22:12:27
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L2 sendsms_queue_create # saved queue_code:4e7613449c1a5b9a4710576ec4c80032 id:201
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[23232]
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[23232]
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:23232 default_rate:0
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:23232 enable_credit_unicode:0 count:1 rate: charge:0
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L2 sendsms_queue_push # saving queue_code:4e7613449c1a5b9a4710576ec4c80032 dst:23232
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L2 sendsms_queue_push # saved queue_code:4e7613449c1a5b9a4710576ec4c80032 smslog_id:212
193.169.1.2 193.169.1.3 2018-09-15 15:12:27 PID5b9d053b0ebb7 admin L2 sendsms # end queue_code:4e7613449c1a5b9a4710576ec4c80032 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2018-09-15 15:12:27 PID5b9d053bae7be - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:10
- - 2018-09-15 15:12:27 PID5b9d053bae7be - L2 sendsmsd # start processing queue_code:4e7613449c1a5b9a4710576ec4c80032 chunk:0 queue_count:1 sms_count:1 scheduled:2018-09-15 15:12:27 uid:1 gpid:0 sender_id:6506
- - 2018-09-15 15:12:27 PID5b9d053bae7be - L2 sendsmsd # sending queue_code:4e7613449c1a5b9a4710576ec4c80032 smslog_id:212 to:23232 sms_count:1 counter:1
- - 2018-09-15 15:12:27 PID5b9d053bae7be - L3 sendsms_intercept # msgtemplate modified sms_sender:[6506] sms_footer:[] sms_to:[23232] sms_msg:[Test message from 6506] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[4e7613449c1a5b9a4710576ec4c80032] smsc:[]
- - 2018-09-15 15:12:27 PID5b9d053bae7be - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:6506 to:23232
- - 2018-09-15 15:12:27 PID5b9d053bae7be - L2 recvsms_process # using default SMSC smsc:[kannel]
- - 2018-09-15 15:12:27 PID5b9d053bae7be - L2 sendsms_process # start
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 simplerate_hook_rate_getbyprefix # rate not found to:23232 default_rate:0
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:23232 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:23232 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 sendsms # saving smslog_id:212 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:6506 d:23232 type:text unicode:0 status:0
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 sendsms_process # saved smslog_id:212 id:212
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 sendsms # final smslog_id:212 gw:kannel smsc:kannel message:Test message from 6506 len:22
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:212 uid:1 to:23232
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 kannel_hook_sendsms # URL: http://localhost:13131/cgi-bin/sendsms?username=playsms&password=yahya2018&from=6506&to=23232&dlr-mask=27&dlr-url=http%3A%2F%2F193.169.1.3%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D212%26uid%3D1%26smsc%3Dkannel&account=admin&text=Test+message+from+6506
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 dlr # isdlrd:1 smslog_id:212 p_status:2 uid:1
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 kannel__outgoing # end smslog_id:212 p_status:2
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 simplerate_hook_rate_deduct # enter smslog_id:212
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 simplerate_hook_rate_getbyprefix # rate not found to:23232 default_rate:0
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:22 unicode:0 to:23232 enable_credit_unicode:0 count:1 rate: charge:0
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 simplebilling_hook_billing_post # saving smslog_id:212 rate: count:1 charge:0
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 simplebilling_hook_billing_post # saved smslog_id:212 id:244
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:212
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 sendsms_process # end
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 sendsms_throttle_count # throttle bucket exists start:2018-09-15 14:23:56 sum:10 limit:30000
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 sendsmsd # result queue_code:4e7613449c1a5b9a4710576ec4c80032 to:23232 flag:1 smslog_id:212
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:11
- - 2018-09-15 15:12:28 PID5b9d053bae7be - L2 sendsmsd # finish processing queue_code:4e7613449c1a5b9a4710576ec4c80032 uid:1 sender_id:6506 queue_count:1 sms_count:1
- - 2018-09-15 15:12:29 PID5b9d008696c49 - L3 dlrd # id:244 smslog_id:212 p_status:2 uid:1

That is playSMS log, read Kannel (bearerbox and smsbox log etc)

Anton

Now I can send message fromplaySMS to smsc via kannel, but eventhough message is delivered, playSMS displays it as pending status. I moved kannel to the same machine which playsSMS installed on.

Usually just config issue, check the log, whats bring sent by kannelz and did playSMS received it. Kannel must be able to access playSMS URL.

The delivery issue is now partially solved. I checked the configurations and set every value and it worked on simulated SMSC.

Now the subscription thing. My ISP allows only keywords. Not keyword + parameter. Is there anyway that I can use only keyword instead of keyword + params? For stop also there are a lots of keywords that my ISP requires me to have.

Subscription keywords examples are (1,2,3,…A,B,C,…). Unsubscription keywords will be a list of words that ISP gave me.

I also don’t want to send a reply if a user is already a member. How can I tweak this?

I suppose you can either build the plugin yourself or modify sms subscribe. There will be alot of stuff to modify though.

Anton