%@page import="com.edeal.frontline.helper.CTIHelper"%> <%@page import="com.edeal.frontline.services.cti.CTIServiceClient"%> <% /****************************************************************************** * Copyright (c) 2000-2004 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. * * CVS Info for $RCSfile: call.jsp,v $ * * $Revision: 1.21 $ * $Author: ghazig $ $Date: 2012-05-23 11:57:48 $ ******************************************************************************/ %><%@page session="true" pageEncoding="UTF-8" import="com.edeal.frontline.*,java.util.*,com.edeal.frontline.navigation.*,com.edeal.frontline.helper.ActorBaseHelper"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <%!private String formatPhone(String pFmt, String pPhone) { String strResult = ""; for (int i = 0, j = -1; i < pFmt.length(); i++) { char c = pFmt.charAt(i); if (c == '?') { for (j++; j < pPhone.length() && !(((c = pPhone.charAt(j)) >= '0' && c <= '9') || c == '_'); j++) ; if (j < pPhone.length()) strResult += c; } else { strResult += c; } } return strResult; }%> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); String contextPath = (String) session.getAttribute("contextPath"); FlContext context = null; if (contextPath != null) { context = Frontline.getContext(contextPath); } else { context = Frontline.getContext(request.getContextPath()); } DataDictionary dico = context.getDataDictionary(); boolean isPostgreSQL = context.isDbPostgreSQL(); boolean isOracle = context.isDbOracle(); String pPhone = Utils.getRequestParameter(context, request, "phone"); if (pPhone == null || "null".equalsIgnoreCase(pPhone)) { pPhone = ""; } String pRef = Utils.getRequestParameter(context, request, "ref"); if (pRef == null) { pRef = ""; } boolean isC3TCTI = false; try { CTIServiceClient cti = (CTIServiceClient)context.getServiceManager().getServiceClient(session, "CTI"); if (cti != null) { String idService = cti.getProviderId(); isC3TCTI = "C3T".equalsIgnoreCase(idService); } } catch (Exception e) { } String actID = (String)session.getAttribute("actorID"); boolean actHasCTILic; try { actHasCTILic = ((Boolean)session.getAttribute("actorHasCTI")).booleanValue(); } catch (Exception e) { // Lic V3 version. actHasCTILic = context.getLicenceManager().actorHasSoftware(actID, CTIServiceClient.CTI_LIC_CODE, LicenceManager.LicenceType.PermanentLicence, null); session.setAttribute("actorHasCTI", new Boolean(actHasCTILic)); } boolean isMasked = pPhone == null || "".equals(pPhone.trim()); boolean isIdentified = false; boolean isUnknown = false; FlRequest flRequest = new FlRequest(request); Vector vectObjs = (Vector) request.getAttribute("vectObjs"); if (vectObjs == null){ vectObjs = new Vector(); } Boolean isU, isM, isI; isU = (Boolean) request.getAttribute("isUnknown"); isM = (Boolean) request.getAttribute("isMasked"); isI = (Boolean) request.getAttribute("isIdentified"); if (isU!=null) isUnknown = (isU).booleanValue(); if (isM!=null) isMasked = (isM).booleanValue(); if (isI!=null) isIdentified = (isI).booleanValue(); String pCut = flRequest.getRequestParameterOrAttribute("cut"); %>