MCPcopy Index your code
hub / github.com/CyCoreSystems/ari-proxy / bridgeCreate

Method bridgeCreate

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

Source from the content-addressed store, hash-verified

27}
28
29func (s *Server) bridgeCreate(ctx context.Context, reply string, req *proxy.Request) {
30 // bind dialog
31 if req.Key.Dialog != "" {
32 s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID)
33 }
34
35 h, err := s.ari.Bridge().Create(req.Key, req.BridgeCreate.Type, req.BridgeCreate.Name)
36 if err != nil {
37 s.sendError(reply, err)
38 return
39 }
40
41 s.publish(reply, &proxy.Response{
42 Key: h.Key(),
43 })
44}
45
46func (s *Server) bridgeStageCreate(ctx context.Context, reply string, req *proxy.Request) {
47 bh := s.ari.Bridge().Get(req.Key)

Callers

nothing calls this directly

Calls 5

sendErrorMethod · 0.95
publishMethod · 0.95
BridgeMethod · 0.80
BindMethod · 0.65
CreateMethod · 0.45

Tested by

no test coverage detected