feat: ws 新增CDR会话查询

This commit is contained in:
TsMask
2024-01-24 14:11:00 +08:00
parent 3135ff5b85
commit eba4416cab
3 changed files with 44 additions and 9 deletions

View File

@@ -31,6 +31,12 @@ func (s *WSReceiveImpl) Receive(client *model.WSClient, reqMsg model.WSRequest)
return err
}
client.MsgChan <- res
case "cdr":
res, err := processor.GetCDRConnect(reqMsg.RequestID, reqMsg.Data)
if err != nil {
return err
}
client.MsgChan <- res
default:
return fmt.Errorf("message type not supported")
}