[solved] Can not send SMS using PlaySMS 1.4 web portal

Hello,
I’m using the latest kannel version and installed playsms 1.4.
After installed, i’m not able sms. Please i need your help/
Thanks

Not enough information to help. Please provide some logs.

Anton

Hello Anton,

Below my log from the report :

- - 2016-08-13 11:18:43 PID57aef4034aadd - L2 sendsmsd # result queue_code:b418a8c521a4520ce51885060cad7bb4 to:0841060091 flag:1 smslog_id:6
- - 2016-08-13 11:18:43 PID57aef4034aadd - L2 sendsmsd # finish processing queue_code:b418a8c521a4520ce51885060cad7bb4 uid:1 sender_id:1234 queue_count:1 sms_count:1
- - 2016-08-13 11:18:44 PID57aef3df23d3d - L3 dlrd # id:6 smslog_id:6 p_status:2 uid:1
172.16.3.242 172.16.3.65 2016-08-13 11:25:00 PID57aef57a90f29 admin L3 main_config # main configuration saved. uid:1
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L2 sendsms # start uid:1 sender_id:[+243840787611] smsc:[]
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L3 sendsms # maxlen:459 footerlen:7 footer:[ @admin] msglen:32 message:[Hi u there, good morning!! Again]
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L2 sendsms_queue_create # saving queue_code:9aaa623a190fd7330634b15a6922c116 src:+243840787611 scheduled:2016-08-13 11:56:17
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L2 sendsms_queue_create # saved queue_code:9aaa623a190fd7330634b15a6922c116 id:7
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[+243841060091]
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+243841060091]
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+243841060091 default_rate:0
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:39 unicode:0 to:+243841060091 enable_credit_unicode:0 count:1 rate: charge:0
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L2 sendsms_queue_push # saving queue_code:9aaa623a190fd7330634b15a6922c116 dst:+243841060091
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L2 sendsms_queue_push # saved queue_code:9aaa623a190fd7330634b15a6922c116 smslog_id:7
172.16.3.242 172.16.3.65 2016-08-13 11:56:17 PID57aefcd15cc23 admin L2 sendsms # end queue_code:9aaa623a190fd7330634b15a6922c116 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsmsd # start processing queue_code:9aaa623a190fd7330634b15a6922c116 chunk:0 queue_count:1 sms_count:1 scheduled:2016-08-13 11:56:17 uid:1 gpid:0 sender_id:+243840787611
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsmsd # sending queue_code:9aaa623a190fd7330634b15a6922c116 smslog_id:7 to:+243841060091 sms_count:1 counter:1
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 sendsms_intercept # msgtemplate modified sms_sender:[+243840787611] sms_footer:[@admin] sms_to:[+243841060091] sms_msg:[Hi u there, good morning!! Again] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[9aaa623a190fd7330634b15a6922c116] smsc:[]
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:+243840787611 to:+243841060091
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 recvsms_process # using default SMSC smsc:[kannel]
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsms_process # start
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+243841060091 default_rate:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:39 unicode:0 to:+243841060091 enable_credit_unicode:0 count:1 rate: charge:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+243841060091 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsms # saving smslog_id:7 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:+243840787611 d:+243841060091 type:text unicode:0 status:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsms_process # saved smslog_id:7 id:7
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 sendsms # final smslog_id:7 gw:kannel smsc:kannel message:Hi u there, good morning!! Again @admin len:39
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:7 uid:1 to:+243841060091
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 kannel_hook_sendsms # URL: http://localhost:13013/cgi-bin/sendsms?username=kannel&password=kannel&from=13013&to=%2B243841060091&dlr-mask=31&dlr-url=172.16.3.65%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D7%26uid%3D1%26smsc%3Dkannel&account=admin&text=Hi+u+there%2C+good+morning%21%21+Again+%40admin
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 dlr # isdlrd:1 smslog_id:7 p_status:2 uid:1
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 kannel__outgoing # end smslog_id:7 p_status:2
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 simplerate_hook_rate_deduct # enter smslog_id:7
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+243841060091 default_rate:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:39 unicode:0 to:+243841060091 enable_credit_unicode:0 count:1 rate: charge:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 simplebilling_hook_billing_post # saving smslog_id:7 rate: count:1 charge:0
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 simplebilling_hook_billing_post # saved smslog_id:7 id:7
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:7
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsms_process # end
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsmsd # result queue_code:9aaa623a190fd7330634b15a6922c116 to:+243841060091 flag:1 smslog_id:7
- - 2016-08-13 11:56:19 PID57aefcd2d8533 - L2 sendsmsd # finish processing queue_code:9aaa623a190fd7330634b15a6922c116 uid:1 sender_id:+243840787611 queue_count:1 sms_count:1
- - 2016-08-13 11:56:19 PID57aef3df23d3d - L3 dlrd # id:7 smslog_id:7 p_status:2 uid:1
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L2 sendsms # start uid:1 sender_id:[+243840787611] smsc:[]
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L3 sendsms # maxlen:459 footerlen:7 footer:[ @admin] msglen:31 message:[Hi u there, good morning!! Test]
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L2 sendsms_queue_create # saving queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 src:+243840787611 scheduled:2016-08-13 12:55:10
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L2 sendsms_queue_create # saved queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 id:8
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L3 sendsms_manipulate_prefix # before prefix manipulation:[0841060091]
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L3 sendsms_manipulate_prefix # after prefix manipulation:[0841060091]
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L3 simplerate_hook_rate_getbyprefix # rate not found to:0841060091 default_rate:0
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:38 unicode:0 to:0841060091 enable_credit_unicode:0 count:1 rate: charge:0
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L2 sendsms_queue_push # saving queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 dst:0841060091
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L2 sendsms_queue_push # saved queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 smslog_id:8
172.16.3.242 172.16.3.65 2016-08-13 12:55:10 PID57af0a9e3ba8e admin L2 sendsms # end queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsmsd # start processing queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 chunk:0 queue_count:1 sms_count:1 scheduled:2016-08-13 12:55:10 uid:1 gpid:0 sender_id:+243840787611
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsmsd # sending queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 smslog_id:8 to:0841060091 sms_count:1 counter:1
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 sendsms_intercept # msgtemplate modified sms_sender:[+243840787611] sms_footer:[@admin] sms_to:[0841060091] sms_msg:[Hi u there, good morning!! Test] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[7f865ed0a136ea298ef8e2e297ffc0a7] smsc:[]
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:+243840787611 to:0841060091
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 recvsms_process # using default SMSC smsc:[kannel]
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsms_process # start
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 simplerate_hook_rate_getbyprefix # rate not found to:0841060091 default_rate:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:38 unicode:0 to:0841060091 enable_credit_unicode:0 count:1 rate: charge:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:0841060091 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsms # saving smslog_id:8 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:+243840787611 d:0841060091 type:text unicode:0 status:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsms_process # saved smslog_id:8 id:8
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 sendsms # final smslog_id:8 gw:kannel smsc:kannel message:Hi u there, good morning!! Test @admin len:38
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:8 uid:1 to:0841060091
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 kannel_hook_sendsms # URL: http://localhost:13013/cgi-bin/sendsms?username=kannel&password=kannel&from=13013&to=0841060091&dlr-mask=31&dlr-url=172.16.3.65%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D8%26uid%3D1%26smsc%3Dkannel&account=admin&text=Hi+u+there%2C+good+morning%21%21+Test+%40admin
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 dlr # isdlrd:1 smslog_id:8 p_status:2 uid:1
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 kannel__outgoing # end smslog_id:8 p_status:2
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 simplerate_hook_rate_deduct # enter smslog_id:8
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 simplerate_hook_rate_getbyprefix # rate not found to:0841060091 default_rate:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:38 unicode:0 to:0841060091 enable_credit_unicode:0 count:1 rate: charge:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 simplebilling_hook_billing_post # saving smslog_id:8 rate: count:1 charge:0
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 simplebilling_hook_billing_post # saved smslog_id:8 id:8
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:8
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsms_process # end
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsmsd # result queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 to:0841060091 flag:1 smslog_id:8
- - 2016-08-13 12:55:12 PID57af09c659dee - L3 dlrd # id:8 smslog_id:8 p_status:2 uid:1
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L2 sendsmsd # finish processing queue_code:7f865ed0a136ea298ef8e2e297ffc0a7 uid:1 sender_id:+243840787611 queue_count:1 sms_count:1
172.16.3.65 172.16.3.65 2016-08-13 13:04:06 PID57af0cb6470a5 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
172.16.3.65 172.16.3.65 2016-08-13 13:04:06 PID57af0cb6470a5 - L2 kannel__dlr # unable to process DLR. remote_addr:[172.16.3.65] or remote_host:[172.16.x.x] does not match with your bearerbox_host config:[localhost] smsc:[kannel]
172.16.3.65 172.16.3.65 2016-08-13 13:07:35 PID57af0d876b726 - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
172.16.3.65 172.16.3.65 2016-08-13 13:07:35 PID57af0d876b726 - L2 kannel__dlr # unable to process DLR. remote_addr:[172.16.3.65] or remote_host:[172.16.x.x] does not match with your bearerbox_host config:[localhost] smsc:[kannel]

next time please refine your post to use commonmark, thanks. the log part should at least be covered by a code block.

reference to commonmark: http://commonmark.org/help/

anton

this part of your playsms log:

- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 kannel_hook_sendsms # URL: http://localhost:13013/cgi-bin/sendsms?username=kannel&password=kannel&from=13013&to=0841060091&dlr-mask=31&dlr-url=172.16.3.65%2Fplaysms%2Findex.php%3Fapp%3Dcall%26cat%3Dgateway%26plugin%3Dkannel%26access%3Ddlr%26type%3D%25d%26smslog_id%3D8%26uid%3D1%26smsc%3Dkannel&account=admin&text=Hi+u+there%2C+good+morning%21%21+Test+%40admin
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 dlr # isdlrd:1 smslog_id:8 p_status:2 uid:1
- - 2016-08-13 12:55:12 PID57af0a9fe132c - L3 kannel__outgoing # end smslog_id:8 p_status:2

your playsms submitted the message to kannel and kannel returns with an error, thus the p_status is 2, which meann fail to send SMS

check your kannel log

anton

Hello Anton,

I think the error come from the link generated by PlaySMS show below :

The dlr-url=172.16.3.65 must be preceed by " http://" like dlr-url=http://172.16.3.65 . How can i modify the configuration file to match with the url http://172.16.3.65.

Because when i use only the dlr-url link (dlr-url=http://172.16.3.65) into a web browser without using Playsms, i can send sms message, means that it work.

Regards

Please someone can help me to solve my issue ?

Hi Anton,

Please can you help me to solve this issue by showing me which file i must modify to match with the dlr-url=http://172.16.3.65 instead dlr-url=172.16.3.65.

This is my log Playsms :

172.16.3.242 172.16.3.65 2016-08-16 11:54:38 PID57b2f0ee61910 - L2 login # u:admin uid:1 status:2 sid:ds8e89ijemsfivktjh334hsvc3 ip:172.16.3.242
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L2 sendsms # start uid:1 sender_id:[+243840787611] smsc:[]
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L3 sendsms # maxlen:459 footerlen:7 footer:[ @admin] msglen:50 message:[Hello #Tshami#, please hurry up, boss summons us !]
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L2 sendsms_queue_create # saving queue_code:b1388f7c88c40f42ca5ef5504b0a1116 src:+243840787611 scheduled:2016-08-16 11:55:26
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L2 sendsms_queue_create # saved queue_code:b1388f7c88c40f42ca5ef5504b0a1116 id:15
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L3 sendsms_manipulate_prefix # before prefix manipulation:[+243841060091]
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+243841060091]
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+243841060091 default_rate:0
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:57 unicode:0 to:+243841060091 enable_credit_unicode:0 count:1 rate: charge:0
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L2 sendsms_queue_push # saving queue_code:b1388f7c88c40f42ca5ef5504b0a1116 dst:+243841060091
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L2 sendsms_queue_push # saved queue_code:b1388f7c88c40f42ca5ef5504b0a1116 smslog_id:15
172.16.3.242 172.16.3.65 2016-08-16 11:55:26 PID57b2f11e33a4b admin L2 sendsms # end queue_code:b1388f7c88c40f42ca5ef5504b0a1116 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsmsd # start processing queue_code:b1388f7c88c40f42ca5ef5504b0a1116 chunk:0 queue_count:1 sms_count:1 scheduled:2016-08-16 11:55:26 uid:1 gpid:0 sender_id:+243840787611
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsmsd # sending queue_code:b1388f7c88c40f42ca5ef5504b0a1116 smslog_id:15 to:+243841060091 sms_count:1 counter:1
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 sendsms_intercept # msgtemplate modified sms_sender:[+243840787611] sms_footer:[@admin] sms_to:[+243841060091] sms_msg:[Hello #Tshami#, please hurry up, boss summons us !] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[b1388f7c88c40f42ca5ef5504b0a1116] smsc:[]
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:+243840787611 to:+243841060091
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 recvsms_process # using default SMSC smsc:[kannel]
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsms_process # start
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+243841060091 default_rate:0
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:57 unicode:0 to:+243841060091 enable_credit_unicode:0 count:1 rate: charge:0
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+243841060091 adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsms # saving smslog_id:15 u:1 parent_uid:0 g:0 gw:kannel smsc:kannel s:+243840787611 d:+243841060091 type:text unicode:0 status:0
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsms_process # saved smslog_id:15 id:15
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 sendsms # final smslog_id:15 gw:kannel smsc:kannel message:Hello #Tshami#, please hurry up, boss summons us ! @admin len:57
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 kannel_hook_sendsms # enter smsc:kannel smslog_id:15 uid:1 to:+243841060091
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 dlr # isdlrd:1 smslog_id:15 p_status:2 uid:1
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 kannel__outgoing # end smslog_id:15 p_status:2
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 simplerate_hook_rate_deduct # enter smslog_id:15
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+243841060091 default_rate:0
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:57 unicode:0 to:+243841060091 enable_credit_unicode:0 count:1 rate: charge:0
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 simplebilling_hook_billing_post # saving smslog_id:15 rate: count:1 charge:0
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 simplebilling_hook_billing_post # saved smslog_id:15 id:15
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:15
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsms_process # end
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsmsd # result queue_code:b1388f7c88c40f42ca5ef5504b0a1116 to:+243841060091 flag:1 smslog_id:15
    • 2016-08-16 11:55:27 PID57b2f11f307d9 - L2 sendsmsd # finish processing queue_code:b1388f7c88c40f42ca5ef5504b0a1116 uid:1 sender_id:+243840787611 queue_count:1 sms_count:1
    • 2016-08-16 11:55:28 PID57b2e2e53e7b3 - L3 dlrd # id:15 smslog_id:15 p_status:2 uid:1

Log from Kannel :

tail /var/log/kannel/access.log
2016-08-16 10:50:18 Log begins
2016-08-16 10:50:20 Log begins
2016-08-16 10:50:21 Log begins
2016-08-16 10:50:23 Log begins
2016-08-16 10:50:23 Log begins
2016-08-16 10:50:24 Log begins
2016-08-16 10:50:25 Log begins
2016-08-16 10:50:26 Log begins
2016-08-16 11:54:07 Log begins
2016-08-16 11:55:27 send-SMS request failed - DLR-URL field misformed, rejected

Smsbox log :

tail /var/log/kannel/smsbox.log
2016-08-16 11:54:07 [2445] [5] DEBUG: Thread 5 (gw/smsbox.c:obey_request_thread) maps to pid 2445.
2016-08-16 11:54:07 [2445] [8] DEBUG: Thread 8 (gw/heartbeat.c:heartbeat_thread) maps to pid 2445.
2016-08-16 11:55:27 [2445] [2] DEBUG: HTTP: Creating HTTPClient for 127.0.0.1'. 2016-08-16 11:55:27 [2445] [2] DEBUG: HTTP: Created HTTPClient area 0x7f09f4000ad0. 2016-08-16 11:55:27 [2445] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2016-08-16 11:55:27 [2445] [3] INFO: sendsms used by <kannel> 2016-08-16 11:55:27 [2445] [3] INFO: sendsms sender:<kannel:13013> (127.0.0.1) to:<+243841060091> msg:<Hello #Tshami#, please hurry up, boss summons us ! @admin> 2016-08-16 11:55:27 [2445] [3] DEBUG: Status: 400 Answer: <DLR-URL field misformed, rejected> 2016-08-16 11:55:27 [2445] [3] DEBUG: HTTP: Destroying HTTPClient area 0x7f09f4000ad0. 2016-08-16 11:55:27 [2445] [3] DEBUG: HTTP: Destroying HTTPClient for127.0.0.1’.

Best Regards

Is your kannel accessibile on localhost port 13013 ?

search this on your pasted log:

- - 2016-08-16 11:55:27 PID57b2f11f307d9 - L3 kannel__outgoing # end smslog_id:15 p_status:2

the reason you got p_status:2 was because playSMS unable to connect to Kannel

anton

Hi ,

I think that Playsms connecting to Kannel :

If playSMS unable to connect to Kannel, please can you help to update a missed configuration.

Regards

Check options above our screenshot, whats you Send SMS port , Send SMS hostname, Bearerbox hostname and playSMS web URL ?

anton

Thank you very much Anton, i solved the problem following your assistance.
But, i don’t where the DLR report must come from the playSMS interface, or bearbox box log or sms log cli ?
I can’t see the dlr. Please can you show me where to find it.

Kind Regards

1 Like