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

Method asteriskConfigData

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

Source from the content-addressed store, hash-verified

7)
8
9func (s *Server) asteriskConfigData(ctx context.Context, reply string, req *proxy.Request) {
10 data, err := s.ari.Asterisk().Config().Data(req.Key)
11 if err != nil {
12 s.sendError(reply, err)
13 return
14 }
15
16 s.publish(reply, &proxy.Response{
17 Data: &proxy.EntityData{
18 Config: data,
19 },
20 })
21}
22
23func (s *Server) asteriskConfigDelete(ctx context.Context, reply string, req *proxy.Request) {
24 s.sendError(reply, s.ari.Asterisk().Config().Delete(req.Key))

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected