|
|
@@ -702,10 +702,16 @@ func CPAConfbridgeKick(confnum string) (res map[string]string, err error) {
|
|
|
func CPAConfbridgeReinvite(confID string) bool {
|
|
|
|
|
|
utils.LoggerDebug.Printf("CPA CPAConfbridgeReinvite , resume CPA .")
|
|
|
+
|
|
|
+ if priority.PAInterrupt == 1 {
|
|
|
+ utils.LoggerDebug.Printf("CPA CPAConfbridgeReinvite , Get PA Interrupt PAInterrupt == 1 return !")
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
time.Sleep(time.Millisecond * 100)
|
|
|
for _, ext := range Speakers {
|
|
|
if utils.IsICP(ext) {
|
|
|
- if priority.CABInterrupt == 1 || priority.PAInterrupt == 1 {
|
|
|
+ if priority.CABInterrupt == 1 {
|
|
|
utils.LoggerDebug.Printf("CPA CPAConfbridgeReinvite , Get PA/CABCAB Interrupt resume CPA , ignore %s continue .", ext)
|
|
|
continue
|
|
|
}
|
|
|
@@ -734,11 +740,17 @@ func EMGConfbridgeKick(confnum string) (res map[string]string, err error) {
|
|
|
func EMGConfbridgeReinvite(confID string) {
|
|
|
|
|
|
utils.LoggerDebug.Printf("EMG ConfbridgeReinvite , resume EMG .")
|
|
|
+
|
|
|
+ if priority.PAInterrupt == 1 {
|
|
|
+ utils.LoggerDebug.Printf("EMG ConfbridgeReinvite , Get PA Interrupt PAInterrupt == 1 return !")
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
time.Sleep(time.Millisecond * 100)
|
|
|
for _, ext := range Speakers {
|
|
|
if utils.IsICP(ext) {
|
|
|
- if priority.CABInterrupt == 1 || priority.PAInterrupt == 1 {
|
|
|
- utils.LoggerDebug.Printf("EMG ConfbridgeReinvite , Get PA/CABCAB Interrupt resume EMG , ignore %s continue .", ext)
|
|
|
+ if priority.CABInterrupt == 1 {
|
|
|
+ utils.LoggerDebug.Printf("EMG ConfbridgeReinvite , Get CABCAB Interrupt resume EMG , ignore %s continue .", ext)
|
|
|
continue
|
|
|
}
|
|
|
}
|