|
|
@@ -55,6 +55,13 @@ func HandleAMI(event map[string]string) {
|
|
|
lfshook.NewLogger().Infof("========event:%s File:%s", event["Event"], event["FILENAME"])
|
|
|
|
|
|
if event["UserEvent"] == "SetRecordFile" { //get record file name
|
|
|
+ //延时一下1秒;
|
|
|
+ time.Sleep(time.Second)
|
|
|
+ //检测录音文件是否存在;
|
|
|
+
|
|
|
+ //检测录音文件是否超过3min;
|
|
|
+ //如果超过则切割;切割之后推送生成的文件名;
|
|
|
+
|
|
|
alstatus.SendRecordFile(event["FILENAME"], event["RecordType"])
|
|
|
|
|
|
} else if event["UserEvent"] == "CallType" && (event["Type"] == "PA" || event["Type"] == "CPA") { //PA start; check manual PA priority
|