(ctx context.Context, reply string, req *proxy.Request)
| 70 | } |
| 71 | |
| 72 | func (s *Server) bridgeDelete(ctx context.Context, reply string, req *proxy.Request) { |
| 73 | // bind dialog |
| 74 | if req.Key.Dialog != "" { |
| 75 | s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID) |
| 76 | } |
| 77 | |
| 78 | err := s.ari.Bridge().Delete(req.Key) |
| 79 | if err != nil { |
| 80 | s.sendError(reply, err) |
| 81 | return |
| 82 | } |
| 83 | |
| 84 | s.sendError(reply, nil) |
| 85 | } |
| 86 | |
| 87 | func (s *Server) bridgeGet(ctx context.Context, reply string, req *proxy.Request) { |
| 88 | data, err := s.ari.Bridge().Data(req.Key) |