(ctx context.Context, reply string, req *proxy.Request)
| 85 | } |
| 86 | |
| 87 | func (s *Server) bridgeGet(ctx context.Context, reply string, req *proxy.Request) { |
| 88 | data, err := s.ari.Bridge().Data(req.Key) |
| 89 | if err != nil { |
| 90 | s.sendError(reply, err) |
| 91 | return |
| 92 | } |
| 93 | |
| 94 | if req.Key.Dialog != "" { |
| 95 | s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID) |
| 96 | } |
| 97 | |
| 98 | s.publish(reply, &proxy.Response{ |
| 99 | Key: data.Key, |
| 100 | }) |
| 101 | } |
| 102 | |
| 103 | func (s *Server) bridgeList(ctx context.Context, reply string, req *proxy.Request) { |
| 104 | list, err := s.ari.Bridge().List(nil) |