|
@@ -324,7 +324,12 @@
|
|
|
-- No XML content, continue processing
|
|
|
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;
|
|
|
- elseif (carrier == "twilio") then
|
|
|
+
|
|
|
+ elseif (carrier == "peerless") then
|
|
|
+ cmd = "curl -u" .. access_key .. ":" .. secret_key .. " -ki https://mms1.pnwireless.net:443/partners/messageReceiving/".. access_key .."/submitMessage -H \"Content-Type: application/json\" -X POST -d '{\"from\":\"" .. outbound_caller_id_number .."\",\"recipients\":[\"+".. to .."\"],\"text\":\"" .. body .. "\"}'";
|
|
|
+
|
|
|
+
|
|
|
+ elseif (carrier == "twilio") then
|
|
|
if to:len() < 11 then
|
|
|
to = "1" .. to;
|
|
|
end
|