afaik, the only log output for SMS stuff is by using fs_cli.
Try the following revised lua, I added a few missing quotes, and also have the curl command append it's result into the /tmp/sms.send.log file.
cmd = "curl '" .. api_url .. "' -H \"Content-Type: 'application/xml; charset=utf-8'\"...