InComing Call from .*") -- POST function post_tel(url, postdata) local req_t = { url = url, method = "POST", content_type = "application/x-www-form-urlencoded", post_text = string.format("tel= %s¥n", postdata) } local rsp_t = rt.httprequest(req_t) -- error if (rsp_t.code ~= 200) then rt.syslog("info", "[Lua] failed to send TEL data.") end end -- MAIN local rtn, str while (true) do rtn, str = rt.syslogwatch(ptn, 1) if (rtn > 0) then post_tel(url, str[1]) end end ※ ループでエラーになると復帰が面倒なので 複雑なことはさせない方が良さげだった