8eec80c5 by G Manojkumar

removed once from include

1 parent bcc38ddb
......@@ -959,7 +959,6 @@ public function show($id)
$didlinestrArr=explode(":",$didlinestr);
$udidlinesstr[] = substr($didlinestrArr[0], env('didnumber'));
}
//include( app_path() . '/Hacks/DisabledDIDs.php');
$mc=CRMCall::where('userstatus','=','InboundDROP')->where('created_at','>','2018-09-11 00:00:00')->where('created_at','>',date('Y-m-d H:i:s',time()-(7*24*60*60)));
......@@ -971,7 +970,7 @@ public function show($id)
foreach($mc as $key=>$tcall){
//Log::info($tcall);
include( app_path() . '/Hacks/DisabledDIDs.php');
include_once( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($tcall->number,-10),$DisableNumbersArray) ){
//Log::info("Disabled Number".$tcall->number);
continue;
......@@ -983,12 +982,7 @@ public function show($id)
$mccount= count($mc_number);
if($mccount==0){
//include( app_path() . '/Hacks/DisabledDIDs.php');
//if( in_array(substr($tcall->number,-10),$DisableNumbersArray) ){
// Log::info("Disabled Number".$tcall->number);
// }else{
$number_list[] = $tcall->number;
// }
}
}
......@@ -1509,14 +1503,8 @@ public function show($id)
$mccount= count($mc_number);
if($mccount==0){
include( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($tcall->number,-10),$DisableNumbersArray) ){
Log::info("Disabled Number".$tcall->number);
}else{
$number_list[] = $tcall->number;
}
//$number_list[] = $tcall->number;
}
}
$othermissedcalls=DB::select("SELECT * FROM crmcalls where id in (SELECT max(id) FROM crmcalls WHERE number IN
......
......@@ -305,7 +305,7 @@ class KPAMIListen implements IEventListener
$crmcall->data=json_encode($tdata);
$crmcall->save();
$DisableNumbersArray = array();
include( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($crmcall->number,-10),$DisableNumbersArray) ){
Log::info("Disabled Number".$crmcall->number); }else{
......@@ -1025,6 +1025,7 @@ class KPAMIListen implements IEventListener
$crmcall->data=json_encode($tdata);
$crmcall->save();
$DisableNumbersArray = array();
include( app_path() . '/Hacks/DisabledDIDs.php');
if( in_array(substr($crmcall->number,-10),$DisableNumbersArray) ){ Log::info("Disabled Number".$crmcall->number); }else{
$newqueue=new Kqueue();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!