(ctx context.Context, reply string, req *proxy.Request)
| 226 | } |
| 227 | |
| 228 | func (s *Server) bridgeRemoveChannel(ctx context.Context, reply string, req *proxy.Request) { |
| 229 | // bind dialog |
| 230 | if req.Key.Dialog != "" { |
| 231 | s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID) |
| 232 | s.Dialog.Bind(req.Key.Dialog, "channel", req.BridgeRemoveChannel.Channel) |
| 233 | } |
| 234 | |
| 235 | err := s.ari.Bridge().RemoveChannel(req.Key, req.BridgeRemoveChannel.Channel) |
| 236 | if err != nil { |
| 237 | s.sendError(reply, err) |
| 238 | return |
| 239 | } |
| 240 | |
| 241 | s.sendError(reply, nil) |
| 242 | } |
| 243 | |
| 244 | func (s *Server) bridgeSubscribe(ctx context.Context, reply string, req *proxy.Request) { |
| 245 | // bind dialog |
nothing calls this directly
no test coverage detected