Sendsms fail no hook for sendsms

Hello

    • 2024-11-13 16:39:08 PID6734d62cd404a - L2 generic_hook_sendsms # failed smslog_id:9 resp: smsc:macarena
    • 2024-11-13 16:39:08 PID6734d62cd404a - L2 sendsms_process # fail no hook for sendsms
    • 2024-11-13 16:39:08 PID6734d62cd404a - L2 sendsms_process # end
      When I try to send a message I get the following error. Help please

Hi,

Set loglevel to 3 in config.php so that you can get more information for debugging. In L3 you might know more what happen to the SMS sent via generic gateway.

See this for howto read playsms.log:

anton

    • 2024-11-14 09:18:54 PID6735c07e6ff09 - L3 sendsms # final smslog_id:13 gw:generic smsc:macarena message:Hi u there, good morning!! @admin len:33
    • 2024-11-14 09:18:54 PID6735c07e6ff09 - L3 generic_hook_sendsms # enter smsc:macarena smslog_id:13 uid:1 to:+56943575823
    • 2024-11-14 09:18:54 PID6735c07e6ff09 - L3 generic_hook_sendsms # send url:[..*:*2875]
    • 2024-11-14 09:18:54 PID6735c07e6ff09 - L2 generic_hook_sendsms # failed smslog_id:13 resp: smsc:macarena
    • 2024-11-14 09:18:54 PID6735c07e6ff09 - L3 dlr # isdlrd:1 smslog_id:13 p_status:2 uid:1

The response from gateway is considered empty thus failed. Make sure to return something unique like a number, a message id from gateway for example.

See: playsms/web/plugin/gateway/generic/fn.php at 1.4.7 · playsms/playsms · GitHub

anton