Soporte & Consultoria

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

miércoles, 4 de enero de 2017

listing all active sip channels

<?php

$channel=shell_exec("asterisk -x \" core show channels\" | awk '{print $1}' | awk '/SIP/{print}'");

$channelist=explode("\n",$channel);
foreach($channelist as $key=> $value) {
if (preg_match("/\bSIP\b/i", $value,$match)){

echo "$key : $value\n";
}
}
?>

No hay comentarios:

Publicar un comentario