playSMS Forum

[solved] Playsms 1.4 credit not deducting


(crompton) #1

new to playsms please help.
I have installed playsms with kannel everything is working fine. sms is delivering properly but when i assigning credit to user/subuser credit not deducting after delivering sms.

playsmsd version
1.4
playsmsd has been started
schedule at pid 15440
ratesmsd at pid 15442
dlrssmsd at pid 15444
recvsmsd at pid 15447
sendsmsd at pid 15451


(crompton) #2

getting following entry in playsms log but not reflecting in playsms login

    • 2017-01-08 10:14:40 PID587211104a434 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:91916952XXXX adhoc_credit:10 count:1 rate:0.500 charge:0.5 adhoc_balance:9.5

(crompton) #3

problem solved. Actually final delivery report was not coming that’s why credit value was not deducting. Thanks


(Ibsoman) #4

Nice! So, please add [solved] to the title of the first post.


(norman kearse) #5

what did you do to get the credit balance to dedcut from users accounts? t his what my log says after a successful send: - - 2019-02-20 01:53:28 PID5c6cb3181d7bf - L2 simplerate_hook_rate_deduct # enter smslog_id:13

    • 2019-02-20 01:53:28 PID5c6cb3181d7bf - L2 simplebilling_hook_billing_post # saving smslog_id:13 rate:10.000 count:1 charge:10
    • 2019-02-20 01:53:28 PID5c6cb3181d7bf - L2 simplebilling_hook_billing_post # saved smslog_id:13 id:9
    • 2019-02-20 01:53:28 PID5c6cb3181d7bf - L2 sendsms_process # end
    • 2019-02-20 01:53:28 PID5c6cb3181d7bf - L2 sendsmsd # result queue_code:ae3b1abae055624eeb401b34c3ebb1ca to:+18135402670 flag:1 smslog_id:13
    • 2019-02-20 01:53:28 PID5c6cb3181d7bf - L2 sendsmsd # finish processing queue_code:ae3b1abae055624eeb401b34c3ebb1ca uid:2 sender_id: queue_count:1 sms_count:1
      65.32.208.186 162.255.85.194 2019-02-20 01:53:40 PID5c6cb32421ba1 testuser L2 logout # re-login as u:admin uid: status:2 sid:7p3aed7804stjenbicbtlbi4s7 ip:65.32.208.186