|
|
@@ -7,9 +7,7 @@ import (
|
|
|
"io"
|
|
|
"net"
|
|
|
"net/http"
|
|
|
- "os"
|
|
|
"pbx-api-gin/internal/app/ami/action"
|
|
|
- "pbx-api-gin/internal/app/ami/model"
|
|
|
"pbx-api-gin/internal/app/stc/active"
|
|
|
msgdata "pbx-api-gin/internal/app/stc/data"
|
|
|
"pbx-api-gin/internal/app/stc/priority"
|
|
|
@@ -18,9 +16,6 @@ import (
|
|
|
"strconv"
|
|
|
"sync"
|
|
|
"time"
|
|
|
-
|
|
|
- "github.com/sirupsen/logrus"
|
|
|
- "gopkg.in/ini.v1"
|
|
|
)
|
|
|
|
|
|
func HandleStcCmd(ctx context.Context, conn net.Conn) {
|
|
|
@@ -230,8 +225,8 @@ func processPacket(packet []byte) {
|
|
|
case 0x0b: // reset all PAD
|
|
|
AlarmHoldResetAll(packet[8]) // reset all pad
|
|
|
|
|
|
- case 0x0c: // recored config
|
|
|
- RecordStorageConf(packet[8:]) // RCD setting
|
|
|
+ //case 0x0c: // recored config
|
|
|
+ // RecordStorageConf(packet[8:]) // RCD setting
|
|
|
|
|
|
case 0x0d: // ICP answer PAD
|
|
|
if priority.CheckPriority("PAD-ICP") {
|
|
|
@@ -611,6 +606,7 @@ func AlarmHoldResetAll(handler byte) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/*
|
|
|
func RecordStorageConf(data []byte) {
|
|
|
|
|
|
var info model.RcdConf
|
|
|
@@ -650,3 +646,4 @@ func RecordStorageConf(data []byte) {
|
|
|
iniFile.SaveTo(filePath)
|
|
|
|
|
|
}
|
|
|
+*/
|