(ctx context.Context, reply string, req *proxy.Request)
| 9 | ) |
| 10 | |
| 11 | func (s *Server) bridgeAddChannel(ctx context.Context, reply string, req *proxy.Request) { |
| 12 | channel := req.BridgeAddChannel.Channel |
| 13 | |
| 14 | // bind dialog |
| 15 | if req.Key.Dialog != "" { |
| 16 | s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID) |
| 17 | s.Dialog.Bind(req.Key.Dialog, "channel", channel) |
| 18 | } |
| 19 | |
| 20 | err := s.ari.Bridge().AddChannel(req.Key, channel) |
| 21 | if err != nil { |
| 22 | s.sendError(reply, err) |
| 23 | return |
| 24 | } |
| 25 | |
| 26 | s.sendError(reply, nil) |
| 27 | } |
| 28 | |
| 29 | func (s *Server) bridgeCreate(ctx context.Context, reply string, req *proxy.Request) { |
| 30 | // bind dialog |
nothing calls this directly
no test coverage detected