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

Method asteriskLoggingGet

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

Source from the content-addressed store, hash-verified

19}
20
21func (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
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)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected