|
@@ -73,6 +73,7 @@ func HandleAMI(event map[string]string) {
|
|
|
Hangup(event["CallerIDNum"])
|
|
Hangup(event["CallerIDNum"])
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ priority.PAInterrupt = 0
|
|
|
WaitTaskCreate("PA", event["CallerIDNum"])
|
|
WaitTaskCreate("PA", event["CallerIDNum"])
|
|
|
|
|
|
|
|
if priority.CheckPriority("ManuPa") {
|
|
if priority.CheckPriority("ManuPa") {
|
|
@@ -160,6 +161,7 @@ func HandleAMI(event map[string]string) {
|
|
|
}
|
|
}
|
|
|
} else if event["UserEvent"] == "CallType" && event["Type"] == "C2C" { //CabCab start; check cab cab priority
|
|
} else if event["UserEvent"] == "CallType" && event["Type"] == "C2C" { //CabCab start; check cab cab priority
|
|
|
utils.LoggerDebug.Printf("Get UserEvent , %s calling !", event["Type"])
|
|
utils.LoggerDebug.Printf("Get UserEvent , %s calling !", event["Type"])
|
|
|
|
|
+ priority.CABInterrupt = 0
|
|
|
WaitTaskCreate("C2C", event["CallerIDNum"])
|
|
WaitTaskCreate("C2C", event["CallerIDNum"])
|
|
|
|
|
|
|
|
if priority.CheckPriority("CabCab") { // interrupt OCC-PAD
|
|
if priority.CheckPriority("CabCab") { // interrupt OCC-PAD
|
|
@@ -943,7 +945,6 @@ func HandleAMI(event map[string]string) {
|
|
|
ConfbridgeID: event["Conference"],
|
|
ConfbridgeID: event["Conference"],
|
|
|
Running: true,
|
|
Running: true,
|
|
|
}
|
|
}
|
|
|
- priority.PAInterrupt = 0
|
|
|
|
|
|
|
|
|
|
utils.LoggerDebug.Printf("PA Runing , Set PA task info %+v .", task)
|
|
utils.LoggerDebug.Printf("PA Runing , Set PA task info %+v .", task)
|
|
|
priority.RegistryTask.Register("PA", task)
|
|
priority.RegistryTask.Register("PA", task)
|
|
@@ -1276,7 +1277,6 @@ func HandleAMI(event map[string]string) {
|
|
|
Running: true,
|
|
Running: true,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- priority.CABInterrupt = 0
|
|
|
|
|
priority.RegistryTask.Register("C2C", task)
|
|
priority.RegistryTask.Register("C2C", task)
|
|
|
alstatus.PaStatus(event["CallerIDNum"], "C2C", "start")
|
|
alstatus.PaStatus(event["CallerIDNum"], "C2C", "start")
|
|
|
if priority.TaskCreating == "C2C" {
|
|
if priority.TaskCreating == "C2C" {
|