Added new column to capture when an agent has picked up the call when on predictive
Showing
2 changed files
with
12 additions
and
1 deletions
| ... | @@ -1136,6 +1136,7 @@ class KPAMIListen implements IEventListener | ... | @@ -1136,6 +1136,7 @@ class KPAMIListen implements IEventListener |
| 1136 | { | 1136 | { |
| 1137 | $nowts=microtime(true)*1000; | 1137 | $nowts=microtime(true)*1000; |
| 1138 | 1138 | ||
| 1139 | $crmcall->setTs('ts_cTalk',$nowts); | ||
| 1139 | $crmcall->setTs('ts_Talk',$nowts); | 1140 | $crmcall->setTs('ts_Talk',$nowts); |
| 1140 | 1141 | ||
| 1141 | $crmcall->state=$eventname; | 1142 | $crmcall->state=$eventname; |
| ... | @@ -1178,7 +1179,7 @@ class KPAMIListen implements IEventListener | ... | @@ -1178,7 +1179,7 @@ class KPAMIListen implements IEventListener |
| 1178 | { | 1179 | { |
| 1179 | $nowts=microtime(true)*1000; | 1180 | $nowts=microtime(true)*1000; |
| 1180 | 1181 | ||
| 1181 | $crmcall->setTs('ts_Talk',$nowts); | 1182 | $crmcall->setTs('ts_cTalk',$nowts); |
| 1182 | 1183 | ||
| 1183 | $crmcall->state=$eventname; | 1184 | $crmcall->state=$eventname; |
| 1184 | $crmcall->status=$dialstatus; | 1185 | $crmcall->status=$dialstatus; | ... | ... |
| ... | @@ -33,6 +33,15 @@ class CRMCall extends Model{ | ... | @@ -33,6 +33,15 @@ class CRMCall extends Model{ |
| 33 | $this->ts_Dispo=$nowts; | 33 | $this->ts_Dispo=$nowts; |
| 34 | $this->ts_Close=$nowts; | 34 | $this->ts_Close=$nowts; |
| 35 | } | 35 | } |
| 36 | if($var=='ts_cTalk') | ||
| 37 | { | ||
| 38 | $this->ts_cTalk=$nowts; | ||
| 39 | $this->ts_Talk=$nowts; | ||
| 40 | $this->ts_Recstart=$nowts; | ||
| 41 | $this->ts_Recend=$nowts; | ||
| 42 | $this->ts_Dispo=$nowts; | ||
| 43 | $this->ts_Close=$nowts; | ||
| 44 | } | ||
| 36 | if($var=='ts_Talk') | 45 | if($var=='ts_Talk') |
| 37 | { | 46 | { |
| 38 | $this->ts_Talk=$nowts; | 47 | $this->ts_Talk=$nowts; |
| ... | @@ -70,6 +79,7 @@ class CRMCall extends Model{ | ... | @@ -70,6 +79,7 @@ class CRMCall extends Model{ |
| 70 | { | 79 | { |
| 71 | $this->waitSec= $this->ts_Call-$this->ts_Wait; | 80 | $this->waitSec= $this->ts_Call-$this->ts_Wait; |
| 72 | $this->callSec= $this->ts_Talk-$this->ts_Call; | 81 | $this->callSec= $this->ts_Talk-$this->ts_Call; |
| 82 | $this->ctalkSec= $this->ts_Talk-$this->ts_cTalk; | ||
| 73 | $this->talkSec= $this->ts_Recstart-$this->ts_Talk; | 83 | $this->talkSec= $this->ts_Recstart-$this->ts_Talk; |
| 74 | $this->recstartSec= $this->ts_Recend-$this->ts_Recstart; | 84 | $this->recstartSec= $this->ts_Recend-$this->ts_Recstart; |
| 75 | $this->recendSec= $this->ts_Dispo-$this->ts_Recend; | 85 | $this->recendSec= $this->ts_Dispo-$this->ts_Recend; | ... | ... |
-
Please register or sign in to post a comment