错误 #18
迪信通CC-CRM主叫号码带+号的录音无法调听和下载
描述
主叫号码送+86,录音文件名中带+号会被浏览器URL处理为空格,无法下载和调听。
历史记录
#2 由 冯宇 更新于 大约 6 年 之前
- % 完成 从 0 变更为 100
- 预期时间 被设置为 8.00 小时
1. team管理侧
呼叫历史页面:cc-crm/webui/crm/record/cticallRecord/list.jsp
CTI详单页面:cc-crm/webui/crm/record/ctiRecordInfo/list.jsp
修改fileName
<c:set var="fileName" value="${fn:replace(row.srfMsgId, '+', '%2B')}" />
录音调听页面 /cc-crm/webui/cc/upload/common/preview.jsp 改 ${command.fileName} 改调听地址和下载地址
${fn:replace(command.fileName, '+', '%2B')}
<c:set var="fileNameRep" value="${fn:replace(command.fileName, '+', '%2B')}" />
<c:url var="previewFileURL" value='/${command.actionName}.do?method=download&command.corpVccId=${command.corpVccId }&command.callId=${command.callId}&command.sid=${command.sid}&command.startTime=${command.startTime}&downLoadType=preview&fileName=${fileNameRep}&subDirectoryName=${command.subDirectoryName}&msServer=${command.msServer}'/>
<c:url var="downLoadfileURL" value='/${command.actionName}.do?method=download&command.corpVccId=${command.corpVccId }&fileName=${fileNameRep}&command.callId=${command.callId}&command.sid=${command.sid}&command.startTime=${command.startTime}&subDirectoryName=${command.subDirectoryName}&msServer=${command.msServer}'/>
2. 坐席侧
呼叫历史查询器配置,原走的是dcpCtiRecordInfo
改为与team侧一样,走 ccRecordDownload
cc-crm/webui/commons/crmJsPage.jsp 增加
function openPreviewWin(msServer, corpVccId, fileName, contentType) {
fileName = fileName.replace(/\+/g, '%2B');
var winWidth = 700;
var winHeight = 320;
var postUrl = "<c:url value='/forward2OperateJspPage.do'/>?method=forward&actionName=ccRecordDownload&forwardName=previewJsp&corpVccId="+ corpVccId +"&fileName=" + fileName + "&contentType=" + contentType + "&msServer=" + msServer;
cinPromptWin.infoWin(postUrl, winWidth, winHeight, "录音");
}
呼叫历史查询器配置中录音改为:
<a href="javascript:preListenWin2Internet('${row.msServer}','${userCtx.corpId}','${row.srfmsgid}', 'audio/x-wav');">录音</a >