|
|
@@ -93,27 +93,6 @@ func HandleAMI(event map[string]string) {
|
|
|
alstatus.AlarmStatus(event["CallerIDName"], "connect", conn) // Alarm connected
|
|
|
go RedirectInQueue(event["CallerIDName"], "2311", "chanspy-rule", "") // 1车ICP接听PAIU
|
|
|
}
|
|
|
-
|
|
|
- /*
|
|
|
- switch string(event["CallerIDNum"][2]) { // connect the pacu to pad acording to the pad number
|
|
|
- case "1":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu1, false, true) //connect pacu to pad
|
|
|
- case "2":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu2, false, true) //connect pacu to pad
|
|
|
- case "3":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu3, false, true) //connect pacu to pad
|
|
|
- case "4":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu4, false, true) //connect pacu to pad
|
|
|
- case "5":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu5, false, true) //connect pacu to pad
|
|
|
- case "6":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu6, false, true) //connect pacu to pad
|
|
|
- case "7":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu7, false, true) //connect pacu to pad
|
|
|
- case "8":
|
|
|
- ChanSpy(event["CallerIDNum"], pacu8, false, true) //connect pacu to pad
|
|
|
- }
|
|
|
- */
|
|
|
} else if utils.IsPAIU(event["CallerIDNum"]) { //No PACU available in the cab
|
|
|
lfshook.NewLogger().Infof("====BridgeEnter==IN action===%s===ID:%s Name:%s", event["Event"], event["CallerIDNum"], event["CallerIDName"])
|
|
|
alstatus.AlarmStatus(event["CallerIDName"], "connect", conn) // Alarm connected
|