- <?php
- $pbx="14.238.148.19";
- $trunk="commpeak";
- $timeout=45;
- $exten=$_GET['exten'];
- $cid=$_GET['cid'];
- $dest=$_GET['dest'];
- $socket = fsockopen($pbx,"5038", $errno, $errstr, $timeout);
- fputs($socket, "Action: Login\r\n");
- fputs($socket, "UserName: admin\r\n"); //
- fputs($socket, "Secret: x3tss4\r\n\r\n"); //
- //
- $wrets=fgets($socket,128);
- echo $wrets;
- fputs($socket, "Action: Originate\r\n" );
- #fputs($socket, "Channel: Local/$dest@local\r\n" );
- fputs($socket, "Channel: SIP/$exten\r\n" );
- #fputs($socket, "Channel: SIP/$trunk/$exten\r\n" );
- fputs($socket, "Exten: $dest\r\n" );
- fputs($socket, "Context: from-internal\r\n" );
- fputs($socket, "Priority: 1\r\n" );
- fputs($socket, "CallerID: $cid\r\n" );
- fputs($socket, "Variable: __var1=$dest\r\n" );
- fputs($socket, "Variable: __var2=$exten\r\n" );
- fputs($socket, "Async: yes\r\n\r\n" );
- fputs($socket, "Action: Logoff\r\n\r\n");
- sleep (1);
- $wrets=fgets($socket,128);
- ?>
- URL de ejemplo
- exten numero a llamar
- dest numero de destino
- cid caller id
- http://5.181.118.22/dialer/dialer_test.php?exten=200&dest=18007143030&cid=18007143030
Soporte & Consultoria
Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita
viernes, 13 de mayo de 2016
freepbx ami calling
domingo, 8 de mayo de 2016
allowing access to specifc ip to spefic ports
- iptables -I INPUT 2 -m state --state NEW -m tcp -p tcp --dport 80 -s 177.44.7.14 -j ACCEPT
- iptables -I INPUT 2 -m state --state NEW -m udp -p udp --dport 5060 -s 177.44.7.14 -j ACCEPT
- iptables -I INPUT 2 -m state --state NEW -m udp -p udp --dport 10000:20000 -s 177.44.7.14 -j ACCEPT
- by range
- iptables -I INPUT 2 -m state --state NEW -m tcp -p tcp --dport 80 -s 186.150.197.0/24 -j ACCEPT
- iptables -I INPUT 2 -m state --state NEW -m udp -p udp --dport 5060 -s 186.150.197.0/24 -j ACCEPT
iptables -I INPUT 2 -m state --state NEW -m udp -p udp --dport 10000:20000 -s 186.150.197.0/24 -j ACCEPT
service iptables save
Suscribirse a:
Entradas (Atom)