瀏覽代碼

Update index.lua (#127)

mtghr 6 年之前
父節點
當前提交
5d905bacbc
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      sms/resources/install/scripts/app/sms/index.lua

+ 6 - 1
sms/resources/install/scripts/app/sms/index.lua

@@ -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