Exemplo n.º 1
0
 /**
  * Function to handle the EndCall event
  * @param <Vtiger_Request> $details 
  */
 public function handleEndCall($details)
 {
     $callid = $details->get('callUUID');
     // SalesPlatform.ru begin
     //$recordModel = PBXManager_Record_Model::getInstanceBySourceUUID($callid);
     // SalesPlatform.ru end
     $params['starttime'] = $details->get('starttime');
     $params['endtime'] = $details->get('endtime');
     $params['totalduration'] = $details->get('duration');
     $params['billduration'] = $details->get('billableseconds');
     //SalesPlatform.ru begin
     PBXManager_Record_Model::updateCallDetailsBySourceUUID($callid, $params);
     //$recordModel->updateCallDetails($params);
     //SalesPlatform.ru end
 }