PABX da Simples IP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
519 B

<?php
include('bd.php');
include('utils/padroes.php');
$acao = $_GET["acao"];
$tela = $_GET["tela"];
$id = $_GET["id"] ?? "0";
function CommandAsterisk($dbcon,$tipo)
{
$query = "SELECT * FROM pbx_urls where tipo='$tipo'";
$result = pg_query($dbcon, $query);
while($dados = pg_fetch_array($result))
{
$get = @file_get_contents('http://127.0.0.1:9876/?'.$dados['url']);
if($get)
{
return !stripos($get, "Error");
}
return true;
}
}
?>