[solved] Cannot send with twilio

Hi,

I’m pretty sure I’ve got everything setup correctly with the twilio plugin. I’ve followed the guide on your site (I can’t post a link as the editior stops me) and have the correct tokens and sender ID set but when I send a message I get the below in the logs

    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 sendsms_process # start
    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+44xxxxxxxxxx adhoc_credit:0 count:1 rate: charge:0 adhoc_balance:0
    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 sendsms # saving smslog_id:36 u:1 parent_uid:0 g:0 gw:twilio smsc:twilio1 s:+12xxxxxxxxx d:+44xxxxxxxxxx type:text unicode:0 status:0
    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 sendsms_process # saved smslog_id:36 id:36
    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 sendsms_process # fail no hook for sendsms
    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 sendsms_process # end
    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 sendsmsd # result queue_code:0b80871023755021f61d9cc607805ecd to:+44xxxxxxxxxx flag:2 smslog_id:36
    - - 2020-06-29 16:00:06 PID5efa1006072a3 - L2 sendsmsd # finish processing queue_code:0b80871023755021f61d9cc607805ecd uid:1 sender_id:+12xxxxxxxxx queue_count:1 sms_count:1

I guess fail no hook for sendsms is the problem but I can’t work out what’s going on. Using tcpdump I can see that no traffic is being sent to twilio so I assume this is an error somewhere within my playSMS config.

Any help would be gratefully received.

fail no hook means no other means to deliver SMS, playSMS cannot use anymore gateway to actualy send SMS, thats usually not the issue here.

Please enable logstate 3 in config.php (read about this in this Forum, theres a lot of comments about this, you need to enable log level 3 to get more information). After enabling logstate 3 you’ll get L3 lines on logs, with more information.

Also please redact your pastes, dont include real life information such as phone numbers, names etc.

anton

Many thanks anton. I thought I’d redacted my log paste but clearly not d’oh.

After enabling logstate 3 I could see that i was missing the PHP curl extension, d’oh again. Installed now and all working.

Thanks ever so much for your help :+1: :+1:

1 Like

i have enabled log state 3 L3, and got this

73.252 op:pv timestamp:1681801901 status: error: error_string:

what does it mean?