dujunchen 1 vecka sedan
förälder
incheckning
fe20659536

+ 2 - 1
internal/app/ami/action/call.go

@@ -50,7 +50,8 @@ func Dial(src, dst, dialrule, callerID, callerName string, callType string) {
 func ChanSpy(src, dst string, whisper, bargein bool) {
 	lfshook.NewLogger().Infof("chan spy src:%s dst:%s", src, dst)
 
-	channel := fmt.Sprintf("%s/%s", utils.DialPrefix, dst)
+	//channel := fmt.Sprintf("%s/%s", utils.DialPrefix, dst)
+	channel := fmt.Sprintf("Local/%s@aio-rule", dst)
 	data := fmt.Sprintf("%s/%s,qBE", utils.DialPrefix, src)
 	/*
 		if whisper {

+ 1 - 0
internal/app/stc/broadcast/stc-broadcast.go

@@ -24,6 +24,7 @@ func HandleStcCmd(ctx context.Context, conn net.Conn) {
 	for {
 		select {
 		case <-ctx.Done():
+			lfshook.NewLogger().Logger.Infof("HandleStcCmd===ctx==ret======")
 			return
 
 		default:

+ 1 - 0
internal/app/stc/index.go

@@ -112,6 +112,7 @@ func Sendheartbeat(ctx context.Context, conn net.Conn) {
 	for {
 		select {
 		case <-ctx.Done():
+			lfshook.NewLogger().Logger.Infof("Sendheartbeat===ctx==ret======")
 			return
 
 		case <-ticker.C: