function Wo_NotifyNodeCall($to_id, $from_id, $call_type = 'video') { if (empty($to_id) || empty($from_id)) { return false; } $post_data = json_encode(array( 'to_id' => (int)$to_id, 'from_id' => (int)$from_id, 'call_type' => $call_type )); $ch = curl_init('http://127.0.0.1:448/api/emit_call'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_TIMEOUT_MS, 400); curl_setopt($ch, CURLOPT_NOSIGNAL, 1); @curl_exec($ch); @curl_close($ch); return true; } PurpleKeyStudios