|
|
@@ -110,7 +110,7 @@ func HandleAMI(event map[string]string) {
|
|
|
DstFile := ""
|
|
|
if len(FileNames) > 0 { // 文件切割之后进入循环处理
|
|
|
for _, file := range FileNames {
|
|
|
- DstFile = fmt.Sprintf("%s.bin", file)
|
|
|
+ DstFile = fmt.Sprintf("encrypted-%s", file)
|
|
|
|
|
|
lfshook.NewLogger().Infof("===========Bin file====%s", DstFile)
|
|
|
err = utils.AudioFileEncode(DstFile, file)
|
|
|
@@ -173,6 +173,10 @@ func HandleAMI(event map[string]string) {
|
|
|
if priority.CheckPriority("CPA") {
|
|
|
if active.ActivedCab == "" { //No active Signal on both side,Hangup caller
|
|
|
Hangup(event["CallerIDNum"])
|
|
|
+ } else if active.ActivedCab == "1" && event["CallerIDNum"] == "1411" {
|
|
|
+ Hangup(event["CallerIDNum"])
|
|
|
+ } else if active.ActivedCab == "8" && event["CallerIDNum"] == "1481" {
|
|
|
+ Hangup(event["CallerIDNum"])
|
|
|
}
|
|
|
|
|
|
//hangup others if priority is higher
|