2015-11-26 11:34:38 PID5657349d9c719 - L2 credit_hook_rate_setusercredit # unable to save uid:15 balance:294.572 - - 2015-11-26 11:34:38 PID5657349d9c719 - L3 simplerate__deduct # rate deduct failed due to unable to save to db uid:15 parent_uid: smslog_id:23207
Sorry for getting back so late, was also sorting this script and making it safe… it will only reconcile the billable messages and not failed or pending,
How to set up
Upload both to a gateway plugin of your choice.
Open reconcile.php and replace ::: chdir(“plugin/gateway/ak/”); with ::: chdir(“plugin/gateway/YOURGATEWAY/”);
No, its part of several adjustments I made to fix billing issue.
Last week I just pushed more fixes by adding new daemon that updates user’s credits. But I haven’t announce it as I forgot to correctly handle the parent credits.