fix: route call accept across pods
This commit is contained in:
@@ -1650,6 +1650,13 @@ func (s *Session) note(msg *ClientComMessage) {
|
||||
// the user about the call.
|
||||
//
|
||||
// Hub will forward to topic, if appropriate.
|
||||
if msg.Note.What == "call" && globals.cluster != nil &&
|
||||
globals.cluster.isRemoteTopic(types.TopicKey{TenantID: msg.TenantID, Topic: msg.RcptTo}) {
|
||||
if err := globals.cluster.routeToTopicMaster(ProxyReqCall, msg, msg.RcptTo, s); err != nil {
|
||||
logs.Warn.Printf("s.note: failed routing detached call event to topic master topic=%s sid=%s err=%v", msg.RcptTo, s.sid, err)
|
||||
}
|
||||
return
|
||||
}
|
||||
select {
|
||||
case globals.hub.routeCli <- msg:
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user