01.02.2022, 12:18
Replace the whole sendsms function with this and check if it works. Also check if you have any messages in Logs.
Code:
function sendsms(number, message)
local client, err = require('socket').udp()
if client then
client:sendto(number .. ' ' .. message, '127.0.0.1', 12535)
client:close()
else
log('failed to created socket: ' .. tostring(err))
end
end