Problem with playsms

i can send a message via playsms and i receive the msg in my mobile but in the list of sent message , it’s still pending with a yellow icon however the msg is sent to my phone !!!

I’m having almost the same issue. I can send a message to my phone via CLI but via playsms it won’t be delivered and the message is always in “pending” state.

hihihi :stuck_out_tongue: Is this normal???

the program or script that does the changing from “yellow” to “sent” or “delivered” is playsmsd

so your playsmsd must be running

BUT, that is not the only thing you need to check, your “Bearerbox hostname or IP” and “Send SMS hostname or IP” must be the same.

To know what value you need to put in Bearerbox or Send SMS hostname or IP, you can view it on log:

Run this during sending SMS, you’ll see the DLR sent by Kannel to playSMS containing what hostname or IP

tail -f /var/log/playsms/playsms.log

anton

yes my playsmsd is running
playsmsd status
playsmsd is running
schedule at pid 1535
dlrssmsd at pid 1537
recvsmsd at pid 1540
sendsmsd at pid 1543

and this is the file log :

    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 sendsms # saving smslog_id:156 u:1 g:0 gw:kannel smsc:gsm1 s:22***** d:20******* type:text unicode:0 status:0
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 sendsms_process # saved smslog_id:156 id:156
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 simplerate__deduct # enter smslog_id:156
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 credit_hook_rate_setusercredit # no changes uid:1 balance:0
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:156 msglen:38 count:1 rate: charge:0 credit:0.000 balance:0
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 simplebilling__post # saving smslog_id:156 rate: credit:0.000 count:1 charge:0
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 simplebilling__post # saved smslog_id:156 id:156
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 sendsms_process # end
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 sendsmsd # result queue_code:7db3a5f004d333e640acb2c5848cd10c to:20******* flag:1 smslog_id:156
    • 2015-07-13 10:08:59 PID55a3721b743cb - L2 sendsmsd # finish processing queue_code:7db3a5f004d333e640acb2c5848cd10c uid:1 sender_id:22***** queue_count:1 sms_count:1

read the whole sentence, I wasn’t just point out that playsmsd need to be running, I also mentioned that bearerbox host and send sms host need to be the same

ok, lets set the debug correctly first:

  • edit config.php (in playsms web root folder)
  • set logstate to 3
  • restart playsmsd (run: playsmsd restart)

and then start to debug:

  • run this: tail -f /var/log/playsms/playsms.log | tee test1.txt
  • send from playsms to 1 number
  • wait for a while until the tail screen stop moving (should be less than 1 minutes)
  • ctrl-C the tail and read the test1.txt
  • sanitize for personal data, paste here the content of test1.txt

anton

tail -f /var/log/playsms/playsms.log | tee test1.txt

    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L2 credit_hook_rate_setusercredit # no changes uid:1 balance:0
    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:157 msglen:38 count:1 rate: charge:0 credit:0.000 balance:0
    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L2 simplebilling__post # saving smslog_id:157 rate: credit:0.000 count:1 charge:0
    • 2015-07-13 10:43:23 PID55a3657290484 - L3 dlrd # id:185 smslog_id:157 p_status:0 uid:1
    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L2 simplebilling__post # saved smslog_id:157 id:157
    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L3 simplerate__deduct # deduct successful uid:1 parent_uid: smslog_id:157
    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L3 simplerate__deduct # credit_lowest_limit:0 balance:0 charge:0
    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L2 sendsms_process # end
    • 2015-07-13 10:43:23 PID55a37a2b9c31a - L2 sendsmsd # result queue_code:6ab9c9ee9834dbdcaec006ad20****** to:20******* flag:1 smslog_id:157
    • 2015-07-13 10:43:24 PID55a37a2b9c31a - L2 sendsmsd # finish processing queue_code:6ab9c9ee9834dbdcaec006ad20****** uid:1 sender_id:22****** queue_count:1 sms_count:1

Please follow my suggestion, read carefully

Anton