SELECT A.COID,A.CallerNumber AS ANI,
A.CalledNumber AS DNIS,A.CallType as DNIS,
A.CallType AS CALLTYPE,
A.SkillCode AS SK,
to_char(A.CreateTime, 'yyyy-mm-dd hh24:mi:ss') AS StartTime,
to_char(to_date( to_char(A.CreateTime, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd hh24:mi:ss')+NUMTODSINTERVAL(a.filelength,'second'),'yyyy-mm-dd hh24:mi:ss') AS StopTime,
FileLength AS FILELEN ,
A.FileLength * 4 AS FILESIZE,
A.EmployeeID AS AGENTID,
A.recmode AS RECORDMODE ,
(REPLACE(B.URLBase, '@IP', C.ServerIP)||Replace( A.FileName,'\' ,'/')) AS URL
FROM AGENTRECFILE A INNER JOIN RECFILEPATHINFO B ON A.StorageID = B.ID INNER JOIN DEVICECFG C ON B.FileServerID = C.ServerID;
A.CalledNumber AS DNIS,A.CallType as DNIS,
A.CallType AS CALLTYPE,
A.SkillCode AS SK,
to_char(A.CreateTime, 'yyyy-mm-dd hh24:mi:ss') AS StartTime,
to_char(to_date( to_char(A.CreateTime, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd hh24:mi:ss')+NUMTODSINTERVAL(a.filelength,'second'),'yyyy-mm-dd hh24:mi:ss') AS StopTime,
FileLength AS FILELEN ,
A.FileLength * 4 AS FILESIZE,
A.EmployeeID AS AGENTID,
A.recmode AS RECORDMODE ,
(REPLACE(B.URLBase, '@IP', C.ServerIP)||Replace( A.FileName,'\' ,'/')) AS URL
FROM AGENTRECFILE A INNER JOIN RECFILEPATHINFO B ON A.StorageID = B.ID INNER JOIN DEVICECFG C ON B.FileServerID = C.ServerID;