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 { ...@@ -80,11 +80,12 @@ class PredictiveCallHangUp extends Command {
80 80
81 $this->updateCrmCallEntry($callId); 81 $this->updateCrmCallEntry($callId);
82 } 82 }
83 elseif($dialline->status == 'AutoCall' && $lastUpdatedTime > ($avgringsec+$breathingTime) && $dialline->src_channel != "") { 83 // elseif($dialline->status == 'AutoCall' && $lastUpdatedTime > ($avgringsec+$breathingTime) && $dialline->src_channel != "") {
84 $newqueue->hangupChannelS($dialline->src_channel,$dialline->server); 84 // $newqueue->hangupChannelS($dialline->src_channel,$dialline->server);
85 85
86 $this->updateCrmCallEntry($callId); 86 // $this->updateCrmCallEntry($callId);
87 } 87 // }
88 //TODO: Check The Time Difference
88 } 89 }
89 } catch (Exception $e) { 90 } catch (Exception $e) {
90 Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log"); 91 Log::useFiles(storage_path()."/logs/predictive_".date("Y_m_d").".log");
......
...@@ -1195,11 +1195,13 @@ class KPAMIListen implements IEventListener ...@@ -1195,11 +1195,13 @@ class KPAMIListen implements IEventListener
1195 $dialline->uniqueid=$uniqueid; 1195 $dialline->uniqueid=$uniqueid;
1196 $dialline->status="Auto"; 1196 $dialline->status="Auto";
1197 $dialline->save(); 1197 $dialline->save();
1198
1199 $crmcall->type="Auto";
1198 } 1200 }
1199 1201
1200 $crmcall->addEventLog($nowts,"$accountcode:$accountcodearr[1] : $eventname $dchannelstate:$dchannelstatedesc $duniqueid $dexten:$dpriority $dchannel $dialstatus"); 1202 $crmcall->addEventLog($nowts,"$accountcode:$accountcodearr[1] : $eventname $dchannelstate:$dchannelstatedesc $duniqueid $dexten:$dpriority $dchannel $dialstatus");
1201 1203
1202 $crmcall->type="Auto"; 1204
1203 $crmcall->save(); 1205 $crmcall->save();
1204 } 1206 }
1205 1207
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!