added Timeout for SmsGateway
Showing
1 changed file
with
1 additions
and
0 deletions
| ... | @@ -46,6 +46,7 @@ class SmsController extends Controller | ... | @@ -46,6 +46,7 @@ class SmsController extends Controller |
| 46 | curl_setopt($ch, CURLOPT_URL, $url); | 46 | curl_setopt($ch, CURLOPT_URL, $url); |
| 47 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | 47 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
| 48 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | 48 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
| 49 | curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,3); | ||
| 49 | $response = curl_exec($ch); | 50 | $response = curl_exec($ch); |
| 50 | Log::useFiles(storage_path().'/logs/SMS_Messages'.date("Y-m-d").'.log'); | 51 | Log::useFiles(storage_path().'/logs/SMS_Messages'.date("Y-m-d").'.log'); |
| 51 | Log::info("|".date('Y-m-d H:i:s', strtotime('+5 hours 30 minutes'))."|".Auth::user()->fullname."|".$kstychCall['callnumber']."|".$msgText."|".$response); | 52 | Log::info("|".date('Y-m-d H:i:s', strtotime('+5 hours 30 minutes'))."|".Auth::user()->fullname."|".$kstychCall['callnumber']."|".$msgText."|".$response); | ... | ... |
-
Please register or sign in to post a comment