Soporte & Consultoria

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

sábado, 28 de marzo de 2020

phpagi spoof

//wait a minute to give everything a chance to settle
sleep(2);


//I had it set up to check the callerid against a set of valid peeps - but i decided i was tired of that. and it made it too complex.
//get caller id. 
$cid = $agi->parse_callerid();
$cid= $cid[username];

//streamfile that says "Enter number to spoof"
$agi->stream_file('enter_spoof');
//beep then get the resulting 10 digits - set it to spoofnumber
$result = $agi->get_data('beep', 3000, 10);
$spoofnumber= $result['result'];
$agi->verbose("Spoof Number:".$spoofnumber);
//streamfile that says "enter number to call"
$agi->stream_file('call_spoof');
//beep then get the resulting 10 digits - set it to callnumber
$result = $agi->get_data('beep', 3000, 10);
$callnumber= $result['result'];
$agi->verbose("Number to call:".$callnumber);
// set caller id to the spoofnumber
$agi->set_callerid($spoofnumber);

//call the number using whatever you got
//notice i have placed the 1 before the callnumber. this is so that i can keep everything ten digits. and cuz i am lazy
$agi->exec("Dial IAX2/yourpassword@provider/1".$callnumber);


// That is it. simple.. scary and easy
?>

domingo, 22 de marzo de 2020

phpagi conference system

#!/usr/bin/php -q
<?php
set_time_limit(30);
require('/var/www/html/project1/phpagi-2.20/phpagi.php');

error_reporting(E_ALL);
$agi = new AGI();
$agi->answer();
//http://php.net/manual/en/function.date.php
$time=date('a');

$agi->stream_file("welcome");

 $cid = $agi->parse_callerid();
$agi->verbose($cid[username]);

$agi->verbose($time);
$agi->set_variable("CONFBRIDGE(user,pin)",1212);
$agi->set_variable("CONFBRIDGE(bridge,max_members)",2);

//ConfBridge(conference[,bridge_profile[,user_profile[,menu]]])

$agi->exec("ConfBridge","111");

//$agi->exec_goto('from-internal',$value,1);
?>


[outboundtest]
exten=>100,1,answer()
;same=>n,Set(CONFBRIDGE(user,pin)=1111)
;same=>n,Set(CONFBRIDGE(bridge,max_members)=2)
exten=>100,n,agi(/var/www/html/conference/conf.php)
same=>n,hangup()

martes, 3 de marzo de 2020

Len Execif

${LEN(${CALLERID(num)})}
 ${LEN(${CALLERID(num)})}

same=>n,ExecIf($[${LEN(${CALLERID(num)})}> 2]?Set(CALLERID(num)=${CALLERID(num):1}))