(ctx context.Context, reply string, req *proxy.Request)
| 31 | } |
| 32 | |
| 33 | func (s *Server) asteriskLoggingCreate(ctx context.Context, reply string, req *proxy.Request) { |
| 34 | h, err := s.ari.Asterisk().Logging().Create(req.Key, req.AsteriskLoggingChannel.Levels) |
| 35 | if err != nil { |
| 36 | s.sendError(reply, err) |
| 37 | return |
| 38 | } |
| 39 | |
| 40 | s.publish(reply, &proxy.Response{ |
| 41 | Key: h.Key(), |
| 42 | }) |
| 43 | } |
| 44 | |
| 45 | func (s *Server) asteriskLoggingData(ctx context.Context, reply string, req *proxy.Request) { |
| 46 | data, err := s.ari.Asterisk().Logging().Data(req.Key) |