(ctx context.Context, reply string, req *proxy.Request)
| 19 | } |
| 20 | |
| 21 | func (s *Server) asteriskLoggingGet(ctx context.Context, reply string, req *proxy.Request) { |
| 22 | data, err := s.ari.Asterisk().Logging().Data(req.Key) |
| 23 | if err != nil { |
| 24 | s.sendError(reply, err) |
| 25 | return |
| 26 | } |
| 27 | |
| 28 | s.publish(reply, &proxy.Response{ |
| 29 | Key: data.Key, |
| 30 | }) |
| 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) |