Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

lunes, 28 de diciembre de 2020

Asterisk set variable

 #!/usr/bin/php -q

<?php

include ("/var/www/html/project1/phpagi-2.20/phpagi.php");

$agi = new AGI();

$agi->answer();


$info = shell_exec("curl https://ipinfo.io/json");


$info=json_decode($info,true);


foreach($info as $key=>$value){


$agi->set_variable($key,$value);

$agi->verbose("--$key-----------$value-----");

}

?>



sábado, 26 de diciembre de 2020

FreePBX call foward API

<?php
// show the fowarding value
//echo shell_exec("asterisk -x \" database show CF/$_GET[exten] \" ");
//update the fowarding value
//echo shell_exec("asterisk -x \" database put CF $_GET[exten] 13052311212 \" ");
//command for deleting
echo shell_exec("asterisk -x \" database del CF $_GET[exten] \" ");
?> http://155.138.223.92/cfoward.php?exten=100