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

Method asteriskVariableSet

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

Source from the content-addressed store, hash-verified

35}
36
37func (s *Server) asteriskVariableSet(ctx context.Context, reply string, req *proxy.Request) {
38 err := s.ari.Asterisk().Variables().Set(req.Key, req.AsteriskVariableSet.Value)
39 if err != nil {
40 s.sendError(reply, err)
41 return
42 }
43
44 s.sendError(reply, nil)
45}

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
SetMethod · 0.80
VariablesMethod · 0.80
AsteriskMethod · 0.80

Tested by

no test coverage detected