5c2f60e6 by Manish Mihsra

Removed hangup from hangup screen and update CRMcall when call is answered

1 parent 5523df1c
......@@ -80,11 +80,12 @@ class PredictiveCallHangUp extends Command {
$this->updateCrmCallEntry($callId);
}
elseif($dialline->status == 'AutoCall' && $lastUpdatedTime > ($avgringsec+$breathingTime) && $dialline->src_channel != "") {
$newqueue->hangupChannelS($dialline->src_channel,$dialline->server);
// elseif($dialline->status == 'AutoCall' && $lastUpdatedTime > ($avgringsec+$breathingTime) && $dialline->src_channel != "") {
// $newqueue->hangupChannelS($dialline->src_channel,$dialline->server);
$this->updateCrmCallEntry($callId);
}
// $this->updateCrmCallEntry($callId);
// }
//TODO: Check The Time Difference
}
} catch (Exception $e) {
Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log");
......
......@@ -1195,11 +1195,13 @@ class KPAMIListen implements IEventListener
$dialline->uniqueid=$uniqueid;
$dialline->status="Auto";
$dialline->save();
$crmcall->type="Auto";
}
$crmcall->addEventLog($nowts,"$accountcode:$accountcodearr[1] : $eventname $dchannelstate:$dchannelstatedesc $duniqueid $dexten:$dpriority $dchannel $dialstatus");
$crmcall->type="Auto";
$crmcall->save();
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!