8f391294 by G Manojkumar

added Timeout for SmsGateway

1 parent a288bbe2
......@@ -46,6 +46,7 @@ class SmsController extends Controller
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3);
$response = curl_exec($ch);
Log::useFiles(storage_path().'/logs/SMS_Messages'.date("Y-m-d").'.log');
Log::info("|".date('Y-m-d H:i:s', strtotime('+5 hours 30 minutes'))."|".Auth::user()->fullname."|".$kstychCall['callnumber']."|".$msgText."|".$response);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!