|
@@ -377,6 +377,7 @@
|
|
if (msgtype ~= nil and string.find(msgtype, "imdn") ~= nil) then mdn = true end;
|
|
if (msgtype ~= nil and string.find(msgtype, "imdn") ~= nil) then mdn = true end;
|
|
if (not mdn) then
|
|
if (not mdn) then
|
|
-- No XML content, continue processing
|
|
-- No XML content, continue processing
|
|
|
|
+ body = body:gsub("'","'\\''"); -- Fixing Apostrophe for CURL
|
|
if (carrier == "flowroute") then
|
|
if (carrier == "flowroute") then
|
|
cmd = "curl -u ".. access_key ..":" .. secret_key .. " -H \"Content-Type: application/json\" -X POST -d '{\"to\":\"" .. to .. "\",\"from\":\"" .. outbound_caller_id_number .."\",\"body\":\"" .. body .. "\"}' " .. api_url;
|
|
cmd = "curl -u ".. access_key ..":" .. secret_key .. " -H \"Content-Type: application/json\" -X POST -d '{\"to\":\"" .. to .. "\",\"from\":\"" .. outbound_caller_id_number .."\",\"body\":\"" .. body .. "\"}' " .. api_url;
|
|
elseif (carrier == "peerless") then
|
|
elseif (carrier == "peerless") then
|