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, 26 de diciembre de 2015

Daily Call counter

Sucessfully conected to the database asterisk
TOTALCLIDDestinationDurationcontextCalldate
2"102" <004368>009142599811431internal2015-12-27 00:52:09

<?php

require_once("func.php");
require_once("setting.php");
$titles=Array("TOTAL","CLID","Destination","Duration","context","Calldate");

$record=array("total","clid","dst","billsec","dcontext","calldate");

$query="select Distinct count(dst) as total,billsec,clid,dst,dcontext,calldate  from cdr where SUBSTRING(calldate,1,10)=curdate() and dcontext like '%internal%' group by src";

$db_con=conect_db($setting[host],$setting[username],$setting[password],"asterisk");

table($titles);

display_records($db_con,$query,$record);


?>




No hay comentarios:

Publicar un comentario