MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / asteriskLoggingCreate

Method asteriskLoggingCreate

server/logging.go:33–43  ·  view source on GitHub ↗
(ctx context.Context, reply string, req *proxy.Request)

Source from the content-addressed store, hash-verified

31}
32
33func (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
45func (s *Server) asteriskLoggingData(ctx context.Context, reply string, req *proxy.Request) {
46 data, err := s.ari.Asterisk().Logging().Data(req.Key)

Callers

nothing calls this directly

Calls 5

sendErrorMethod · 0.95
publishMethod · 0.95
LoggingMethod · 0.80
AsteriskMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected