(ctx context.Context, reply string, req *proxy.Request)
| 256 | } |
| 257 | |
| 258 | func (s *Server) bridgeVideoSource(ctx context.Context, reply string, req *proxy.Request) { |
| 259 | // bind dialog |
| 260 | if req.Key.Dialog != "" { |
| 261 | s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID) |
| 262 | s.Dialog.Bind(req.Key.Dialog, "channel", req.BridgeVideoSource.Channel) |
| 263 | } |
| 264 | |
| 265 | err := s.ari.Bridge().VideoSource(req.Key, req.BridgeVideoSource.Channel) |
| 266 | if err != nil { |
| 267 | s.sendError(reply, err) |
| 268 | return |
| 269 | } |
| 270 | |
| 271 | s.sendError(reply, nil) |
| 272 | } |
| 273 | |
| 274 | func (s *Server) bridgeVideoSourceDelete(ctx context.Context, reply string, req *proxy.Request) { |
| 275 | // bind dialog |
nothing calls this directly
no test coverage detected