When sending SMS using Twilio, credits do not change

It took the need to use a third-party gateway, the choice fell on “Twilio”. In terms of sending no problems, SMS go without problems. But the problem is that loans do not change. The callback URL is also specified, but still the cretida remain unchanged.

Piece of log file:

192.168.100.216 smsd.uz 2019-04-02 14:23:16 PID5ca37053e2196 tr7 L2 sendsms # start uid:17 sender_id:[SMSd] smsc:[]
192.168.100.216 smsd.uz 2019-04-02 14:23:16 PID5ca37053e2196 tr7 L2 sendsms_queue_create # saving queue_code:e557191fe1a53bc902082cf7e2522e11 src:SMSd scheduled:2019-04-02 14:23:16
192.168.100.216 smsd.uz 2019-04-02 14:23:16 PID5ca37053e2196 tr7 L2 sendsms_queue_create # saved queue_code:e557191fe1a53bc902082cf7e2522e11 id:54506
192.168.100.216 smsd.uz 2019-04-02 14:23:16 PID5ca37053e2196 tr7 L2 sendsms # dst_count:1 sms_count:1 total_charges:0.01
192.168.100.216 smsd.uz 2019-04-02 14:23:16 PID5ca37053e2196 tr7 L2 sendsms_queue_push # saving queue_code:e557191fe1a53bc902082cf7e2522e11 dst:+998935217698
192.168.100.216 smsd.uz 2019-04-02 14:23:16 PID5ca37053e2196 tr7 L2 sendsms_queue_push # saved queue_code:e557191fe1a53bc902082cf7e2522e11 smslog_id:56410
192.168.100.216 smsd.uz 2019-04-02 14:23:16 PID5ca37053e2196 tr7 L2 sendsms # end queue_code:e557191fe1a53bc902082cf7e2522e11 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2019-04-02 14:23:18 PID5ca3705692be7 - L2 sendsmsd # start processing queue_code:e557191fe1a53bc902082cf7e2522e11 chunk:0 queue_count:1 sms_count:1 scheduled:2019-04-02 14:23:16 uid:17 gpid:0 sender_id:SMSd
2019-04-02 14:23:18 PID5ca3705692be7 - L2 sendsmsd # sending queue_code:e557191fe1a53bc902082cf7e2522e11 smslog_id:56410 to:+998935343698 sms_count:1 counter:1
2019-04-02 14:23:19 PID5ca3705692be7 - L2 sendsms_process # start
2019-04-02 14:23:19 PID5ca3705692be7 - L2 simplerate_hook_rate_cansend # allowed user uid:17 sms_to:+998935217698 adhoc_credit:0.1 count:1 rate:0.01 charge:0.01 adhoc_balance:0.09
2019-04-02 14:23:19 PID5ca3705692be7 - L2 sendsms # saving smslog_id:56410 u:17 parent_uid:0 g:0 gw:twilio smsc:twilio s:SMSd d:+998935217698 type:text unicode:0 status:0
2019-04-02 14:23:19 PID5ca3705692be7 - L2 sendsms_process # saved smslog_id:56410 id:53906
2019-04-02 14:23:21 PID5ca3705692be7 - L2 3 # sendsms url:[https://api.twilio.com/2010-04-01/Accounts/ACf62145b6e01cf34edab929d05cfe6b61/SMS/Messages.json] callback:[https://abcd.aa/plugin/gateway/twilio/callback.php
2019-04-02 14:23:21 PID5ca3705692be7 - L2 twilio_hook_sendsms # sent smslog_id:56410 message_id:SM1bf7438ec38949708c8241290bdfd186 status:queued error:queued|| smsc:[twilio]
2019-04-02 14:23:21 PID5ca3705692be7 - L2 simplerate_hook_rate_deduct # enter smslog_id:56410
2019-04-02 14:23:21 PID5ca3705692be7 - L2 simplebilling_hook_billing_post # saving smslog_id:56410 rate:0.01 count:1 charge:0.01
2019-04-02 14:23:21 PID5ca3705692be7 - L2 simplebilling_hook_billing_post # saved smslog_id:56410 id:53737
2019-04-02 14:23:21 PID5ca3705692be7 - L2 sendsms_process # end
2019-04-02 14:23:21 PID5ca3705692be7 - L2 sendsmsd # result queue_code:e557191fe1a53bc902082cf7e2522e11 to:+998935343698 flag:1 smslog_id:56410
2019-04-02 14:23:21 PID5ca3705692be7 - L2 sendsmsd # finish processing queue_code:e557191fe1a53bc902082cf7e2522e11 uid:17 sender_id:SMSd queue_count:1 sms_count:1
192.168.100.216 smsd.uz 2019-04-02 14:23:22 PID5ca3705a281b8 - L2 twilio__callback # pushed SmsSid:SM1bf7438ec38949708c8241290bdfd186 SmsStatus:sent MessageStatus:sent To:+998935217698 MessageSid:SM1bf7438ec38949708c8241290bdfd186 AccountSid:ACf62145b6e01b6acedab929d05cfe6b61 From:+17867892426 ApiVersion:2010-04-01
192.168.100.216 smsd.uz 2019-04-02 15:44:00 PID5ca3834044c4b tr7 L2 logout # re-login as u:admin uid: status:2 sid:u5c5mre67p2tib2hk1glulbje2 ip:192.168.100.216

Please, help me.

Regards,
Jamshid

First thing first, to debug always use Log level 3

And then make sure callback url is reachable from the internet (by twilio server)

  • Log output after format - 3
  • Callback address is available
    Log output:

192.168.100.225 192.168.100.218 2019-04-02 18:09:32 PID5ca3a55cb924f - L2 kannel__call # start load:/var/www/html/plugin/gateway/kannel/dlr.php
192.168.100.225 192.168.100.218 2019-04-02 18:09:32 PID5ca3a55cb924f - L3 kannel__dlr # remote_addr:192.168.100.225 remote_host:192.168.100.218 type:[8] smslog_id:[55432] uid:[8] smsc:[kannel]
192.168.100.225 192.168.100.218 2019-04-02 18:09:32 PID5ca3a55cb924f - L3 dlr # isdlrd:1 smslog_id:55432 p_status:1 uid:8
192.168.100.225 192.168.100.218 2019-04-02 18:09:32 PID5ca3a55cb924f - L2 kannel__call # end load dlr
2019-04-02 18:09:32 PID5ca3a456065af - L3 dlrd # id:104776 smslog_id:55432 p_status:1 uid:8
2019-04-02 18:09:32 PID5ca3a456065af - L2 simplebilling__finalize # saving smslog_id:55432
2019-04-02 18:09:33 PID5ca3a456065af - L2 simplebilling__finalize # saved smslog_id:55432
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L2 sendsms # start uid:17 sender_id:[SMSd] smsc:[]
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L3 sendsms # maxlen:3672 footerlen:5 footer:[ @tr7] msglen:10 message:[asdfasdfas]
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L2 sendsms_queue_create # saving queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 src:SMSd scheduled:2019-04-02 18:09:36
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L2 sendsms_queue_create # saved queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 id:54521
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L3 sendsms_manipulate_prefix # before prefix manipulation:[+998935343698]
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L3 sendsms_manipulate_prefix # after prefix manipulation:[+998935343698]
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935343698 default_rate:0.01
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:15 unicode:0 to:+998935343698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L2 sendsms # dst_count:1 sms_count:1 total_charges:0.01
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L2 sendsms_queue_push # saving queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 dst:+998935343698
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L2 sendsms_queue_push # saved queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 smslog_id:56425
192.168.100.216 smsd.uz 2019-04-02 18:09:36 PID5ca3a560b94c4 tr7 L2 sendsms # end queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
2019-04-02 18:09:37 PID5ca3a56127076 - L2 sendsmsd # start processing queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 chunk:0 queue_count:1 sms_count:1 scheduled:2019-04-02 18:09:36 uid:17 gpid:0 sender_id:SMSd
2019-04-02 18:09:37 PID5ca3a56127076 - L2 sendsmsd # sending queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 smslog_id:56425 to:+998935343698 sms_count:1 counter:1
2019-04-02 18:09:37 PID5ca3a56127076 - L3 sendsms_intercept # msgtemplate modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935343698] sms_msg:[asdfasdfas] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[b3c5c8f03e1bbf614a77b4326940c1b8] smsc:[]
2019-04-02 18:09:37 PID5ca3a56127076 - L3 outgoing_hook_sendsms_intercept # found SMSCs:[twilio]
2019-04-02 18:09:37 PID5ca3a56127076 - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[twilio] uid:17 parent_uid:0 from:SMSd to:+998935343698
2019-04-02 18:09:37 PID5ca3a56127076 - L3 sendsms_intercept # outgoing modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935343698] sms_msg:[asdfasdfas] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[b3c5c8f03e1bbf614a77b4326940c1b8] smsc:[twilio]
2019-04-02 18:09:37 PID5ca3a56127076 - L2 sendsms_process # start
2019-04-02 18:09:37 PID5ca3a56127076 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935343698 default_rate:0.01
2019-04-02 18:09:37 PID5ca3a56127076 - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:15 unicode:0 to:+998935343698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
2019-04-02 18:09:37 PID5ca3a56127076 - L2 simplerate_hook_rate_cansend # allowed user uid:17 sms_to:+998935343698 adhoc_credit:0.1 count:1 rate:0.01 charge:0.01 adhoc_balance:0.09
2019-04-02 18:09:37 PID5ca3a56127076 - L2 sendsms # saving smslog_id:56425 u:17 parent_uid:0 g:0 gw:twilio smsc:twilio s:SMSd d:+998935343698 type:text unicode:0 status:0
2019-04-02 18:09:37 PID5ca3a56127076 - L2 sendsms_process # saved smslog_id:56425 id:54003
2019-04-02 18:09:37 PID5ca3a56127076 - L3 sendsms # final smslog_id:56425 gw:twilio smsc:twilio message:asdfasdfas @tr7 len:15
2019-04-02 18:09:37 PID5ca3a56127076 - L3 twilio_hook_sendsms # enter smsc:twilio smslog_id:56425 uid:17 to:+998935343698
2019-04-02 18:09:37 PID5ca3a56127076 - L3 twilio_hook_sendsms # sendsms start
2019-04-02 18:09:38 PID5ca3a56127076 - L2 3 # sendsms url:[https://api.twilio.com/2010-04-01/Accounts/ACf62145b6e01cf34edab929d05cfe6b61/SMS/Messages.json] callback:[https://abcd.aa/plugin/gateway/twilio/callback.php
2019-04-02 18:09:38 PID5ca3a56127076 - L2 twilio_hook_sendsms # sent smslog_id:56425 message_id:SM785af5f845794531be449973b44fb9ab status:queued error:queued|| smsc:[twilio]
2019-04-02 18:09:38 PID5ca3a56127076 - L3 dlr # isdlrd:1 smslog_id:56425 p_status:0 uid:17
2019-04-02 18:09:38 PID5ca3a56127076 - L3 twilio_hook_sendsms # sendsms end
2019-04-02 18:09:38 PID5ca3a56127076 - L2 simplerate_hook_rate_deduct # enter smslog_id:56425
2019-04-02 18:09:38 PID5ca3a56127076 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935343698 default_rate:0.01
2019-04-02 18:09:38 PID5ca3a56127076 - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:15 unicode:0 to:+998935343698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
2019-04-02 18:09:38 PID5ca3a56127076 - L2 simplebilling_hook_billing_post # saving smslog_id:56425 rate:0.01 count:1 charge:0.01
2019-04-02 18:09:38 PID5ca3a56127076 - L2 simplebilling_hook_billing_post # saved smslog_id:56425 id:53821
2019-04-02 18:09:38 PID5ca3a56127076 - L3 simplerate_hook_rate_deduct # deduct successful uid:17 parent_uid:0 smslog_id:56425
2019-04-02 18:09:38 PID5ca3a56127076 - L2 sendsms_process # end
2019-04-02 18:09:38 PID5ca3a56127076 - L2 sendsmsd # result queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 to:+998935343698 flag:1 smslog_id:56425
2019-04-02 18:09:38 PID5ca3a56127076 - L2 sendsmsd # finish processing queue_code:b3c5c8f03e1bbf614a77b4326940c1b8 uid:17 sender_id:SMSd queue_count:1 sms_count:1
2019-04-02 18:09:39 PID5ca3a456065af - L3 dlrd # id:104777 smslog_id:56425 p_status:0 uid:17
192.168.100.216 smsd.uz 2019-04-02 18:09:39 PID5ca3a563e1b0f - L2 twilio__callback # pushed SmsSid:SM785af5f845794531be449973b44fb9ab SmsStatus:sent MessageStatus:sent To:+998935343698 MessageSid:SM785af5f845794531be449973b44fb9ab AccountSid:ACf62145b6e01b6acedab929d05cfe6b61 From:+447480784589 ApiVersion:2010-04-01
192.168.100.225 192.168.100.218 2019-04-02 18:09:42 PID5ca3a566d2a74 - L2 kannel__call # start load:/var/www/html/plugin/gateway/kannel/dlr.php
192.168.100.225 192.168.100.218 2019-04-02 18:09:42 PID5ca3a566d2a74 - L3 kannel__dlr # remote_addr:192.168.100.225 remote_host:192.168.100.218 type:[8] smslog_id:[55433] uid:[8] smsc:[kannel]
192.168.100.225 192.168.100.218 2019-04-02 18:09:42 PID5ca3a566d2a74 - L3 dlr # isdlrd:1 smslog_id:55433 p_status:1 uid:8
192.168.100.225 192.168.100.218 2019-04-02 18:09:42 PID5ca3a566d2a74 - L2 kannel__call # end load dlr
2019-04-02 18:09:43 PID5ca3a456065af - L3 dlrd # id:104778 smslog_id:55433 p_status:1 uid:8
2019-04-02 18:09:43 PID5ca3a456065af - L2 simplebilling__finalize # saving smslog_id:55433
2019-04-02 18:09:43 PID5ca3a456065af - L2 simplebilling__finalize # saved smslog_id:55433

I can’t understand what kannel is doing here.

Regards,
Jamshid Tursunov

do you have kannel installed ? looks like kannel pushing DLR to your playSMS

as for twilio, can you check in database, table playsms_gatewayTwilio, is there anything in there ?

anton

Yes, but kannel is installed on another host.
Well, right now, check it out.
Thank you so much Anton for your guidance.

Regards,
Jamshid Tursunov

adsfasdf

hmmm not sure why, yet, that part of log should meant that playSMS saved the message id to table playsms_gatewayTwilio

Anton, please tell me how to be in this situation?
Thank you in advance.

Respectfully,
Jamshid Tursunov

you can try to test the table by inserting something
or try to REPAIR TABLE just incase

anton

added test string


balance values haven’t changed yet

can you try again sending 1 SMS, and see the db table

fyi, the code that saves delivery info to db is in twilio/fn.php line 64~67

anton

Before sending SMS:
sadfsad
sadfsad

After senind two SMS:
192.168.100.216 smsd.uz 2019-04-02 20:04:18 PID5ca3c042de23c tr7 L2 sendsms # start uid:17 sender_id:[SMSd] smsc:
192.168.100.216 smsd.uz 2019-04-02 20:04:18 PID5ca3c042de23c tr7 L3 sendsms # maxlen:3672 footerlen:5 footer:[ @tr7] msglen:10 message:[asdfasdfas]
192.168.100.216 smsd.uz 2019-04-02 20:04:18 PID5ca3c042de23c tr7 L2 sendsms_queue_create # saving queue_code:8f91eb1beb3558212cabe1fb2bfa1867 src:SMSd scheduled:2019-04-02 20:04:18
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L2 sendsms_queue_create # saved queue_code:8f91eb1beb3558212cabe1fb2bfa1867 id:54521
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L3 sendsms_manipulate_prefix # before prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L3 sendsms_manipulate_prefix # after prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:15 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L2 sendsms # dst_count:1 sms_count:1 total_charges:0.01
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L2 sendsms_queue_push # saving queue_code:8f91eb1beb3558212cabe1fb2bfa1867 dst:+998935217698
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L2 sendsms_queue_push # saved queue_code:8f91eb1beb3558212cabe1fb2bfa1867 smslog_id:56425
192.168.100.216 smsd.uz 2019-04-02 20:04:19 PID5ca3c042de23c tr7 L2 sendsms # end queue_code:8f91eb1beb3558212cabe1fb2bfa1867 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L2 sendsmsd # start processing queue_code:8f91eb1beb3558212cabe1fb2bfa1867 chunk:0 queue_count:1 sms_count:1 scheduled:2019-04-02 20:04:18 uid:17 gpid:0 sender_id:SMSd
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L2 sendsmsd # sending queue_code:8f91eb1beb3558212cabe1fb2bfa1867 smslog_id:56425 to:+998935217698 sms_count:1 counter:1
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 sendsms_intercept # msgtemplate modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935217698] sms_msg:[asdfasdfas] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[8f91eb1beb3558212cabe1fb2bfa1867] smsc:
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 outgoing_hook_sendsms_intercept # found SMSCs:[twilio]
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[twilio] uid:17 parent_uid:0 from:SMSd to:+998935217698
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 sendsms_intercept # outgoing modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935217698] sms_msg:[asdfasdfas] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[8f91eb1beb3558212cabe1fb2bfa1867] smsc:[twilio]
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L2 sendsms_process # start
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:15 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L2 simplerate_hook_rate_cansend # allowed user uid:17 sms_to:+998935217698 adhoc_credit:0.1 count:1 rate:0.01 charge:0.01 adhoc_balance:0.09
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L2 sendsms # saving smslog_id:56425 u:17 parent_uid:0 g:0 gw:twilio smsc:twilio s:SMSd d:+998935217698 type:text unicode:0 status:0
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L2 sendsms_process # saved smslog_id:56425 id:54003
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 sendsms # final smslog_id:56425 gw:twilio smsc:twilio message:asdfasdfas @tr7 len:15
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 twilio_hook_sendsms # enter smsc:twilio smslog_id:56425 uid:17 to:+998935217698
    • 2019-04-02 20:04:20 PID5ca3c0442a645 - L3 twilio_hook_sendsms # sendsms start
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L2 twilio_hook_sendsms # sent smslog_id:56425 message_id:SM9bc039498911472b8e45f225eea98dee status:queued error:queued|| smsc:[twilio]
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L3 dlr # isdlrd:1 smslog_id:56425 p_status:0 uid:17
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L3 twilio_hook_sendsms # sendsms end
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L2 simplerate_hook_rate_deduct # enter smslog_id:56425
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:15 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L2 simplebilling_hook_billing_post # saving smslog_id:56425 rate:0.01 count:1 charge:0.01
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L2 simplebilling_hook_billing_post # saved smslog_id:56425 id:53821
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L3 simplerate_hook_rate_deduct # deduct successful uid:17 parent_uid:0 smslog_id:56425
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L2 sendsms_process # end
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L2 sendsmsd # result queue_code:8f91eb1beb3558212cabe1fb2bfa1867 to:+998935217698 flag:1 smslog_id:56425
    • 2019-04-02 20:04:21 PID5ca3c0442a645 - L2 sendsmsd # finish processing queue_code:8f91eb1beb3558212cabe1fb2bfa1867 uid:17 sender_id:SMSd queue_count:1 sms_count:1
    • 2019-04-02 20:04:22 PID5ca3b79a7c599 - L3 dlrd # id:104815 smslog_id:56425 p_status:0 uid:17
      192.168.100.216 smsd.uz 2019-04-02 20:04:22 PID5ca3c046c6f7c - L2 twilio__callback # pushed SmsSid:SM9bc039498911472b8e45f225eea98dee SmsStatus:sent MessageStatus:sent To:+998935217698 MessageSid:SM9bc039498911472b8e45f225eea98dee AccountSid:ACf62145b6e01b6acedab929d05cfe6b61 From:+447480784589 ApiVersion:2010-04-01

sadfsad

So the problem is it was failed to insert to database, but why I cant see it yet

Anton

Hi, Anton! What is the way out of the situation suggest?

Regards,
Jamshid Tursunov

I dont know yet, I have to test it. In the mean time you can ask around other forum why an sql insert can fail, etc

Anton

edit twilio/fn.php and insert below log code in line 67:

_log("db_query:[" . $db_query . "]", 2, "twilio_hook_sendsms");

see this image:

send an sms and watch the log, see the db_query and try the insert SQL directly in mysql

anton

To start added code:


update the code

sent SMS and log output
Note: Credits do not change
192.168.100.216 smsd.uz 2019-04-03 13:28:48 PID5ca4b510ac8f4 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:28:53 PID5ca4b51551a9a - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:29:19 PID5ca4b52f67ddc - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:29:24 PID5ca4b534a33fa - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:29:50 PID5ca4b54e7a413 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:29:55 PID5ca4b55331288 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:30:22 PID5ca4b56e49764 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:30:26 PID5ca4b572b60b1 - L2 twilio__callback # pushed

192.168.100.216 smsd.uz 2019-04-03 13:30:49 PID5ca4b58915d46 tr7 L2 logout # re-login as u:admin uid: status:2 sid:u5c5mre67p2tib2hk1glulbje2 ip:192.168.100.216
192.168.100.216 smsd.uz 2019-04-03 13:30:53 PID5ca4b58d1c079 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:30:57 PID5ca4b590ddb85 admin L2 user_mgmnt # login as u:tr7 uid:17 status:3 sid:u5c5mre67p2tib2hk1glulbje2 ip:192.168.100.216
192.168.100.216 smsd.uz 2019-04-03 13:30:58 PID5ca4b591eca72 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L2 sendsms # start uid:17 sender_id:[SMSd] smsc:
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L3 sendsms # maxlen:3672 footerlen:5 footer:[ @tr7] msglen:7 message:[asdfasd]
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L2 sendsms_queue_create # saving queue_code:5043e462f9bd6d0037be76ba564c79ec src:SMSd scheduled:2019-04-03 13:31:07
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L2 sendsms_queue_create # saved queue_code:5043e462f9bd6d0037be76ba564c79ec id:54783
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L3 sendsms_manipulate_prefix # before prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L3 sendsms_manipulate_prefix # after prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:12 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L2 sendsms # dst_count:1 sms_count:1 total_charges:0.01
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L2 sendsms_queue_push # saving queue_code:5043e462f9bd6d0037be76ba564c79ec dst:+998935217698
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L2 sendsms_queue_push # saved queue_code:5043e462f9bd6d0037be76ba564c79ec smslog_id:56687
192.168.100.216 smsd.uz 2019-04-03 13:31:07 PID5ca4b59b4f9a6 tr7 L2 sendsms # end queue_code:5043e462f9bd6d0037be76ba564c79ec queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L2 sendsmsd # start processing queue_code:5043e462f9bd6d0037be76ba564c79ec chunk:0 queue_count:1 sms_count:1 scheduled:2019-04-03 13:31:07 uid:17 gpid:0 sender_id:SMSd
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L2 sendsmsd # sending queue_code:5043e462f9bd6d0037be76ba564c79ec smslog_id:56687 to:+998935217698 sms_count:1 counter:1
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 sendsms_intercept # msgtemplate modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935217698] sms_msg:[asdfasd] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[5043e462f9bd6d0037be76ba564c79ec] smsc:
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 outgoing_hook_sendsms_intercept # found SMSCs:[twilio]
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[twilio] uid:17 parent_uid:0 from:SMSd to:+998935217698
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 sendsms_intercept # outgoing modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935217698] sms_msg:[asdfasd] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[5043e462f9bd6d0037be76ba564c79ec] smsc:[twilio]
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L2 sendsms_process # start
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:12 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L2 simplerate_hook_rate_cansend # allowed user uid:17 sms_to:+998935217698 adhoc_credit:0.1 count:1 rate:0.01 charge:0.01 adhoc_balance:0.09
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L2 sendsms # saving smslog_id:56687 u:17 parent_uid:0 g:0 gw:twilio smsc:twilio s:SMSd d:+998935217698 type:text unicode:0 status:0
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L2 sendsms_process # saved smslog_id:56687 id:54265
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 sendsms # final smslog_id:56687 gw:twilio smsc:twilio message:asdfasd @tr7 len:12
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 twilio_hook_sendsms # enter smsc:twilio smslog_id:56687 uid:17 to:+998935217698
    • 2019-04-03 13:31:08 PID5ca4b59c358e8 - L3 twilio_hook_sendsms # sendsms start
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 twilio_hook_sendsms # sent smslog_id:56687 message_id:SM0f6023c1deac423a8356e9d6127b8f94 status:queued error:queued|| smsc:[twilio]
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 twilio_hook_sendsms # db_query:[ INSERT INTO playsms_gatewayTwilio (local_smslog_id,remote_smslog_id,status,error_text) VALUES (‘56687’,‘SM0f6023c1deac423a8356e9d6127b8f94’,‘queued’,‘queued||’)]
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L3 dlr # isdlrd:1 smslog_id:56687 p_status:0 uid:17
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L3 twilio_hook_sendsms # sendsms end
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 simplerate_hook_rate_deduct # enter smslog_id:56687
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:12 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 simplebilling_hook_billing_post # saving smslog_id:56687 rate:0.01 count:1 charge:0.01
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 simplebilling_hook_billing_post # saved smslog_id:56687 id:54083
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L3 simplerate_hook_rate_deduct # deduct successful uid:17 parent_uid:0 smslog_id:56687
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 sendsms_process # end
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 sendsmsd # result queue_code:5043e462f9bd6d0037be76ba564c79ec to:+998935217698 flag:1 smslog_id:56687
    • 2019-04-03 13:31:09 PID5ca4b59c358e8 - L2 sendsmsd # finish processing queue_code:5043e462f9bd6d0037be76ba564c79ec uid:17 sender_id:SMSd queue_count:1 sms_count:1
    • 2019-04-03 13:31:10 PID5ca4b4c894901 - L3 dlrd # id:105305 smslog_id:56687 p_status:0 uid:17
      192.168.100.216 smsd.uz 2019-04-03 13:31:11 PID5ca4b59f06508 - L2 twilio__callback # pushed SmsSid:SM0f6023c1deac423a8356e9d6127b8f94 SmsStatus:sent MessageStatus:sent To:+998935217698 MessageSid:SM0f6023c1deac423a8356e9d6127b8f94 AccountSid:ACf62145b6e01b6acedab929d05cfe6b61 From:+447480784589 ApiVersion:2010-04-01
      192.168.100.216 smsd.uz 2019-04-03 13:37:04 PID5ca4b700823ec - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:37:10 PID5ca4b706280a1 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:37:36 PID5ca4b72052a17 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:37:41 PID5ca4b72584f78 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:38:06 PID5ca4b73e6a44d - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:38:13 PID5ca4b745083f0 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:38:38 PID5ca4b75e25326 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:38:43 PID5ca4b76360278 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:39:08 PID5ca4b77c38ec3 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:39:14 PID5ca4b782e1c90 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:39:40 PID5ca4b79bef132 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:39:45 PID5ca4b7a137eed - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:40:11 PID5ca4b7bb178c1 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:40:16 PID5ca4b7c0b2889 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:40:42 PID5ca4b7dace12f - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:40:47 PID5ca4b7df1801b - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:41:14 PID5ca4b7f9ef438 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:41:18 PID5ca4b7fe90266 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:41:44 PID5ca4b818ade8f - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:41:50 PID5ca4b81df16cd - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:42:15 PID5ca4b837cb0a1 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:42:20 PID5ca4b83c70245 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:42:46 PID5ca4b856873b1 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:42:51 PID5ca4b85bce126 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:43:17 PID5ca4b875ab49e - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:43:22 PID5ca4b87a457aa - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:43:48 PID5ca4b89463f8e - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:43:53 PID5ca4b899a642b - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:44:19 PID5ca4b8b37d774 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:44:24 PID5ca4b8b823d1a - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:44:51 PID5ca4b8d34a02c - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:44:55 PID5ca4b8d787b95 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:45:21 PID5ca4b8f166c87 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:45:27 PID5ca4b8f70e387 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:45:53 PID5ca4b91128ec5 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:45:57 PID5ca4b9156605b - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:46:23 PID5ca4b92f3a089 - L2 twilio__callback # pushed
      192.168.100.216 smsd.uz 2019-04-03 13:46:28 PID5ca4b934e19fe - L2 twilio__callback # pushed

Send massage and log output

192.168.100.216 smsd.uz 2019-04-03 13:54:13 PID5ca4bb054ca79 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:54:39 PID5ca4bb1f26de8 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:54:44 PID5ca4bb24ade59 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:55:10 PID5ca4bb3ed741f - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:55:16 PID5ca4bb4422f06 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:55:42 PID5ca4bb5e0916a - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:55:47 PID5ca4bb638ecf3 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:56:12 PID5ca4bb7ca8994 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:56:19 PID5ca4bb82f1f7b - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:56:43 PID5ca4bb9bd0914 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:56:49 PID5ca4bba17acd7 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:57:14 PID5ca4bbba8b734 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:57:20 PID5ca4bbc0cf33d - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:57:45 PID5ca4bbd9a109c - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:57:51 PID5ca4bbdf5c579 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:58:17 PID5ca4bbf966ef5 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:58:22 PID5ca4bbfeaecf9 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:58:48 PID5ca4bc1885082 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:58:53 PID5ca4bc1d2c13a - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:59:20 PID5ca4bc38497aa - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:59:24 PID5ca4bc3c8db89 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:59:50 PID5ca4bc56609f3 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 13:59:56 PID5ca4bc5c03993 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:00:22 PID5ca4bc762682a - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:00:26 PID5ca4bc7a6314a - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:00:52 PID5ca4bc9440006 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:00:57 PID5ca4bc99d85c4 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:01:24 PID5ca4bcb404773 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:01:28 PID5ca4bcb846538 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:01:54 PID5ca4bcd22cfec - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:01:59 PID5ca4bcd7b5af5 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:02:25 PID5ca4bcf1cc00b - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:02:30 PID5ca4bcf62a07c - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:02:57 PID5ca4bd1108a2b - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:03:01 PID5ca4bd15850cc - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:03:27 PID5ca4bd2fa37b4 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:03:33 PID5ca4bd3508d32 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:03:58 PID5ca4bd4ede27d - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:04:03 PID5ca4bd53631ca - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:04:29 PID5ca4bd6d79f0d - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:04:34 PID5ca4bd72dca25 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:05:00 PID5ca4bd8cb36fc - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:05:05 PID5ca4bd9144940 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:05:31 PID5ca4bdab53793 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:05:36 PID5ca4bdb0bb393 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:06:02 PID5ca4bdca924fd - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:06:07 PID5ca4bdcf2fce1 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:06:34 PID5ca4bdea44d7d - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:06:38 PID5ca4bdee8ba0b - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:07:04 PID5ca4be08640d6 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:07:10 PID5ca4be0e0af68 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:07:36 PID5ca4be28201a8 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:07:40 PID5ca4be2c689ce - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:08:06 PID5ca4be464120b - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:08:11 PID5ca4be4be5be7 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:08:38 PID5ca4be660932b - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:08:42 PID5ca4be6a44b15 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L2 sendsms # start uid:17 sender_id:[SMSd] smsc:
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L3 sendsms # maxlen:3672 footerlen:5 footer:[ @tr7] msglen:7 message:[asdfasd]
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L2 sendsms_queue_create # saving queue_code:da0d40c974cc7a4f58ed6c6caddb68ef src:SMSd scheduled:2019-04-03 14:08:56
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L2 sendsms_queue_create # saved queue_code:da0d40c974cc7a4f58ed6c6caddb68ef id:54788
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L3 sendsms_manipulate_prefix # before prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L3 sendsms_manipulate_prefix # after prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:12 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L2 sendsms # dst_count:1 sms_count:1 total_charges:0.01
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L2 sendsms_queue_push # saving queue_code:da0d40c974cc7a4f58ed6c6caddb68ef dst:+998935217698
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L2 sendsms_queue_push # saved queue_code:da0d40c974cc7a4f58ed6c6caddb68ef smslog_id:56692
192.168.100.216 smsd.uz 2019-04-03 14:08:56 PID5ca4be7833975 tr7 L2 sendsms # end queue_code:da0d40c974cc7a4f58ed6c6caddb68ef queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L2 sendsmsd # start processing queue_code:da0d40c974cc7a4f58ed6c6caddb68ef chunk:0 queue_count:1 sms_count:1 scheduled:2019-04-03 14:08:56 uid:17 gpid:0 sender_id:SMSd
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L2 sendsmsd # sending queue_code:da0d40c974cc7a4f58ed6c6caddb68ef smslog_id:56692 to:+998935217698 sms_count:1 counter:1
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 sendsms_intercept # msgtemplate modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935217698] sms_msg:[asdfasd] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[da0d40c974cc7a4f58ed6c6caddb68ef] smsc:
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 outgoing_hook_sendsms_intercept # found SMSCs:[twilio]
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[twilio] uid:17 parent_uid:0 from:SMSd to:+998935217698
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 sendsms_intercept # outgoing modified sms_sender:[SMSd] sms_footer:[@tr7] sms_to:[+998935217698] sms_msg:[asdfasd] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[da0d40c974cc7a4f58ed6c6caddb68ef] smsc:[twilio]
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L2 sendsms_process # start
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:12 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L2 simplerate_hook_rate_cansend # allowed user uid:17 sms_to:+998935217698 adhoc_credit:0.1 count:1 rate:0.01 charge:0.01 adhoc_balance:0.09
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L2 sendsms # saving smslog_id:56692 u:17 parent_uid:0 g:0 gw:twilio smsc:twilio s:SMSd d:+998935217698 type:text unicode:0 status:0
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L2 sendsms_process # saved smslog_id:56692 id:54270
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 sendsms # final smslog_id:56692 gw:twilio smsc:twilio message:asdfasd @tr7 len:12
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 twilio_hook_sendsms # enter smsc:twilio smslog_id:56692 uid:17 to:+998935217698
    • 2019-04-03 14:08:56 PID5ca4be78d6aed - L3 twilio_hook_sendsms # sendsms start
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 twilio_hook_sendsms # sent smslog_id:56692 message_id:SM2beda4c820274a678346287f320734ae status:queued error:queued|| smsc:[twilio]
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 twilio_hook_sendsms # db_query:[ INSERT INTO playsms_gatewayTwilio (local_smslog_id,remote_smslog_id,status,error_text) VALUES (‘56692’,‘SM2beda4c820274a678346287f320734ae’,‘queued’,‘queued||’)]
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L3 dlr # isdlrd:1 smslog_id:56692 p_status:0 uid:17
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L3 twilio_hook_sendsms # sendsms end
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 simplerate_hook_rate_deduct # enter smslog_id:56692
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:12 unicode:0 to:+998935217698 enable_credit_unicode:0 count:1 rate:0.01 charge:0.01
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 simplebilling_hook_billing_post # saving smslog_id:56692 rate:0.01 count:1 charge:0.01
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 simplebilling_hook_billing_post # saved smslog_id:56692 id:54088
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L3 simplerate_hook_rate_deduct # deduct successful uid:17 parent_uid:0 smslog_id:56692
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 sendsms_process # end
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 sendsmsd # result queue_code:da0d40c974cc7a4f58ed6c6caddb68ef to:+998935217698 flag:1 smslog_id:56692
    • 2019-04-03 14:08:58 PID5ca4be78d6aed - L2 sendsmsd # finish processing queue_code:da0d40c974cc7a4f58ed6c6caddb68ef uid:17 sender_id:SMSd queue_count:1 sms_count:1
    • 2019-04-03 14:08:59 PID5ca4b4c894901 - L3 dlrd # id:105314 smslog_id:56692 p_status:0 uid:17
      192.168.100.216 smsd.uz 2019-04-03 14:08:59 PID5ca4be7b9e9fe - L2 twilio__callback # pushed SmsSid:SM2beda4c820274a678346287f320734ae SmsStatus:sent MessageStatus:sent To:+998935217698 MessageSid:SM2beda4c820274a678346287f320734ae AccountSid:ACf62145b6e01b6acedab929d05cfe6b61 From:+447480784589 ApiVersion:2010-04-01

sadfsdfa

it was 0.10 left 0.10

By the way, these dates began to appear intensively.
192.168.100.216 smsd.uz 2019-04-03 14:09:08 PID5ca4be842158c - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:09:13 PID5ca4be89c78e5 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:09:39 PID5ca4bea3d2064 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:09:44 PID5ca4bea81b353 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:10:11 PID5ca4bec2ee8a7 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:10:15 PID5ca4bec7975cf - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:10:41 PID5ca4bee1afa9b - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:10:47 PID5ca4bee6f1a29 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:11:12 PID5ca4bf00d14a6 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:11:17 PID5ca4bf056ceef - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:11:43 PID5ca4bf1f8f103 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:11:48 PID5ca4bf24c9098 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:12:14 PID5ca4bf3eaa585 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:12:19 PID5ca4bf434afac - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:12:45 PID5ca4bf5d6a363 - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:12:50 PID5ca4bf62ad65f - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:13:16 PID5ca4bf7c8610c - L2 twilio__callback # pushed
192.168.100.216 smsd.uz 2019-04-03 14:13:21 PID5ca4bf81279e0 - L2 twilio__callback # pushed